Define _POSIX_THREAD_SAFE_FUNCTIONS to get localtime_t declaration on
authordrepper <drepper>
Fri, 16 Oct 1998 12:32:39 +0000 (12:32 +0000)
committerdrepper <drepper>
Fri, 16 Oct 1998 12:32:39 +0000 (12:32 +0000)
some systems.

time/mktime.c

index ab4c0ad..fda08a2 100644 (file)
 # include <config.h>
 #endif
 
-/* Some systems need this in order to declare localtime_r properly.  */
+/* Some systems require that one of these symbols be defined in
+   order to declare localtime_r properly.  */
 #ifndef __EXTENSIONS__
 # define __EXTENSIONS__ 1
 #endif
+#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
+# define _POSIX_THREAD_SAFE_FUNCTIONS 1
+#endif
 
 #ifdef _LIBC
 # define HAVE_LIMITS_H 1