From: Daniel Stenberg Date: Wed, 23 Aug 2000 07:25:21 +0000 (+0000) Subject: Albert's fixes X-Git-Tag: curl-7_2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1998aee2a232607d4a9be530cd5468b695025835;p=thirdparty%2Fcurl.git Albert's fixes --- diff --git a/acconfig.h b/acconfig.h index cdb353e663..df5fab92d6 100644 --- a/acconfig.h +++ b/acconfig.h @@ -27,3 +27,9 @@ /* Define if you have the gethostbyname_r() function with 6 arguments */ #undef HAVE_GETHOSTBYNAME_R_6 + +/* Define if you have the inet_ntoa_r function declared. */ +#undef HAVE_INET_NTOA_R_DECL + +/* Define if you need the _REENTRANT define for some functions */ +#undef NEED_REENTRANT diff --git a/lib/getdate.y b/lib/getdate.y index 5e1a763971..8c02832fe0 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -8,15 +8,18 @@ ** This code is in the public domain and has no copyright. */ -#define _REENTRANT /* Necessary to use in Solaris, since the silly guys at Sun - made the localtime_r() prototype dependent on it (or - _POSIX_C_SOURCE or _POSIX_PTHREAD_SEMANTICS). */ - #ifdef HAVE_CONFIG_H # include "config.h" # ifdef HAVE_ALLOCA_H # include # endif + +# ifdef NEED_REENTRANT +# define _REENTRANT /* Necessary to use in Solaris, since the silly guys at + Sun made the localtime_r() prototype dependent on it + (or _POSIX_C_SOURCE or _POSIX_PTHREAD_SEMANTICS) */ +# endif + # ifdef HAVE_TIME_H # include # endif