about summary refs log tree commit diff
path: root/time/mktime.c
diff options
context:
space:
mode:
Diffstat (limited to 'time/mktime.c')
-rw-r--r--time/mktime.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/time/mktime.c b/time/mktime.c
index ab4c0ad2f0..fda08a25fb 100644
--- a/time/mktime.c
+++ b/time/mktime.c
@@ -25,10 +25,14 @@
 # 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