aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-08-23 07:25:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-08-23 07:25:21 +0000
commit1998aee2a232607d4a9be530cd5468b695025835 (patch)
treeae192579e4110131ddecb8b5353b3621eb8df17e /lib
parentd4731b70505d308064e85bfa1ea1f88904442af2 (diff)
Albert's fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 5e1a76397..8c02832fe 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 <alloca.h>
# 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 <time.h>
# endif