From 7bb4d91420706c096e339dffe2ce24a361fb67a5 Mon Sep 17 00:00:00 2001 From: Jesse Thilo Date: Wed, 30 Dec 1998 05:19:09 +0000 Subject: [PATCH] Include unistd.h and ctype.h. Use #ifdef instead of #if for NLS symbols. --- src/system.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/system.h b/src/system.h index a52a34a5..36652456 100644 --- a/src/system.h +++ b/src/system.h @@ -19,6 +19,10 @@ #include #endif +#if defined(HAVE_UNISTD_H) +#include +#endif + #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H) #define HAVE_STRING_H 1 #endif @@ -37,14 +41,18 @@ /* memory.h and strings.h conflict on some systems. */ #endif /* not STDC_HEADERS and not HAVE_STRING_H */ -#if HAVE_LOCALE_H +#if defined(STDC_HEADERS) || defined(HAVE_CTYPE_H) +#include +#endif + +#ifdef HAVE_LOCALE_H # include #endif -#if !HAVE_SETLOCALE +#ifndef HAVE_SETLOCALE # define setlocale(Category, Locale) #endif -#if ENABLE_NLS +#ifdef ENABLE_NLS # include # define _(Text) gettext (Text) #else -- 2.47.2