X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=acconfig.h;h=c86d9007d571394c6df8554fa764b432a44a3191;hp=b7e0cf59af0681627fd5cf71fcd5fbf03be54e94;hb=6a96f22d3c3e11f63ee17687a9de7f4c6ba854c5;hpb=92d979b6a197cde2e306462c3a1bcdbfa37043ba diff --git a/acconfig.h b/acconfig.h index b7e0cf5..c86d900 100644 --- a/acconfig.h +++ b/acconfig.h @@ -46,6 +46,10 @@ #undef HAVE_CRTSCTS #undef CRTSCTS +/* _POSIX_VDISABLE define, may be missing. */ +#undef HAVE__POSIX_VDISABLE +#undef _POSIX_VDISABLE + /* FD_SETSIZE define, may be missing. */ #undef HAVE_FD_SETSIZE @@ -74,81 +78,114 @@ @BOTTOM@ -#ifndef DONT_NEED_DECLARATIONS +#ifdef WANT_DECLARATIONS /* Declaration for gethostname(3)? */ #undef NEED_DECLARATION_GETHOSTNAME #ifdef NEED_DECLARATION_GETHOSTNAME +#ifdef HAVE_UNISTD_H #include +#endif int gethostname(char *name, size_t len); #endif /* Declaration for kill(2)? */ #undef NEED_DECLARATION_KILL #ifdef NEED_DECLARATION_KILL +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_SIGNAL_H #include +#endif int kill(pid_t pid, int sig); #endif /* Declaration for snprintf(3)? */ #undef NEED_DECLARATION_SNPRINTF #ifdef NEED_DECLARATION_SNPRINTF +#ifdef HAVE_STDIO_H #include +#endif int snprintf(char *str, size_t n, const char *format, ...); #endif /* Declaration for vsnprintf(3)? */ #undef NEED_DECLARATION_VSNPRINTF #ifdef NEED_DECLARATION_VSNPRINTF +#ifdef HAVE_STDIO_H #include +#endif +#ifdef HAVE_STDARG_H #include +#endif int vsnprintf(char *str, size_t n, const char *format, va_list ap); #endif /* Declaration for strdup(3)? */ #undef NEED_DECLARATION_STRDUP #ifdef NEED_DECLARATION_STRDUP +#ifdef HAVE_STRING_H #include +#endif char *strdup(const char *s); #endif /* Declaration for usleep(3)? */ #undef NEED_DECLARATION_USLEEP #ifdef NEED_DECLARATION_USLEEP +#ifdef HAVE_UNISTD_H #include +#endif void usleep(unsigned long usec); #endif /* Declaration for strcasecmp(3)? */ #undef NEED_DECLARATION_STRCASECMP #ifdef NEED_DECLARATION_STRCASECMP +#ifdef HAVE_STRING_H #include +#endif int strcasecmp(const char *s1, const char *s2); #endif /* Declaration for siginterrupt(3)? */ #undef NEED_DECLARATION_SIGINTERRUPT #ifdef NEED_DECLARATION_SIGINTERRUPT +#ifdef HAVE_SIGNAL_H #include +#endif int siginterrupt(int sig, int flag); #endif /* Declaration for popen(3)? */ #undef NEED_DECLARATION_POPEN #ifdef NEED_DECLARATION_POPEN +#ifdef HAVE_STDIO_H #include +#endif FILE *popen(const char *command, const char *type); #endif /* Declaration for pclose(3)? */ #undef NEED_DECLARATION_PCLOSE #ifdef NEED_DECLARATION_PCLOSE +#ifdef HAVE_STDIO_H #include +#endif int pclose(FILE *stream); #endif -#endif /* !DONT_NEED_DECLARATIONS */ +/* Declaration for gettext(3)? */ +#undef NEED_DECLARATION_GETTEXT +#ifdef NEED_DECLARATION_GETTEXT +#ifdef HAVE_LIBINTL_H +#include +#endif +extern const char *gettext(const char *msgid); +#endif + +#endif /* WANT_DECLARATIONS */ /* snprintf(3) unsafe emulation */ #ifdef HAVE_SNPRINTF @@ -193,7 +230,7 @@ extern char *sys_errlist[]; #define offsetof(a,b) ((size_t)&((a *)0)->b) #endif -#ifndef DONT_NEED_DECLARATIONS +#ifdef WANT_DECLARATIONS /* * Handles all of the internationalization configuration options. * Author: Tom Tromey @@ -204,10 +241,9 @@ extern char *sys_errlist[]; #ifdef HAVE_LIBINTL_H # include #endif /* HAVE_LIBINTL_H */ -/* 'gettext()' may not be declared here and it will default to return 'int'! */ -# define _(String) ((const char *)gettext (String)) +# define _(String) gettext (String) # ifdef gettext_noop -# define N_(String) ((const char *)gettext_noop (String)) +# define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif @@ -221,4 +257,4 @@ extern char *sys_errlist[]; # define _(String) (String) # define N_(String) (String) #endif /* ENABLE_NLS */ -#endif /* !DONT_NEED_DECLARATIONS */ +#endif /* WANT_DECLARATIONS */