about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-16 12:32:51 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-16 12:32:51 +0000
commit39e4f7f84ec269a2d86a060d417ceaeb21f53305 (patch)
treec68bc364fa955ae27e21854d18526621f9fc75fb
parentc66dbe00b9c98bb9d1fc10c9007fdcfb98a59b73 (diff)
downloadglibc-39e4f7f84ec269a2d86a060d417ceaeb21f53305.tar.gz
glibc-39e4f7f84ec269a2d86a060d417ceaeb21f53305.tar.xz
glibc-39e4f7f84ec269a2d86a060d417ceaeb21f53305.zip
Update.
1998-10-16  Ulrich Drepper  <drepper@cygnus.com>

	* time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
	localtime_t declaration on some systems.
-rw-r--r--ChangeLog5
-rw-r--r--time/mktime.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b6e76979e8..bf6b048d94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
+
+	* time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
+	localtime_t declaration on some systems.
+
 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
 
 	* iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
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