summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime/localtime.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-04-20 10:09:37 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-04-20 10:09:37 +0000
commit4f6eb9ceedc1f67408754502cb1d0b23e0e6f91d (patch)
treebd5c058dd0f8805b059c8df2a5f11ddcd1d21f48 /lib/libc/stdtime/localtime.c
parent5f03edf1301f14792979dc4b91bcdaa41891c9ab (diff)
Notes
Diffstat (limited to 'lib/libc/stdtime/localtime.c')
-rw-r--r--lib/libc/stdtime/localtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c
index 61614c75e796..792815779504 100644
--- a/lib/libc/stdtime/localtime.c
+++ b/lib/libc/stdtime/localtime.c
@@ -1345,6 +1345,7 @@ const time_t * const timep;
return asctime(localtime(timep));
}
+#ifdef _THREAD_SAFE
char *
ctime_r(timep, buf)
const time_t * const timep;
@@ -1353,6 +1354,7 @@ char *buf;
struct tm tm;
return asctime_r(localtime_r(timep, &tm), buf);
}
+#endif
/*
** Adapted from code provided by Robert Elz, who writes: