summaryrefslogtreecommitdiff
path: root/libc/misc/time
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-06 01:29:10 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-06 01:29:10 +0000
commitaab07d0500d06e1de93280cb9900b24fd0c0875b (patch)
tree7122ec94b0498c150b69401a13f06aaea803cf50 /libc/misc/time
parent680f8428162687caae571090e008b42d18f2bb5a (diff)
macro out the thread funcs in libc if threading is disabled
Diffstat (limited to 'libc/misc/time')
-rw-r--r--libc/misc/time/time.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index d7cf1806e..65b925cf6 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -199,21 +199,12 @@ typedef struct {
} rule_struct;
#ifdef __UCLIBC_HAS_THREADS__
-
-#include <pthread.h>
-
+# include <pthread.h>
extern pthread_mutex_t _time_tzlock;
-
+#endif
#define TZLOCK __pthread_mutex_lock(&_time_tzlock)
#define TZUNLOCK __pthread_mutex_unlock(&_time_tzlock)
-#else
-
-#define TZLOCK ((void) 0)
-#define TZUNLOCK ((void) 0)
-
-#endif
-
extern rule_struct _time_tzinfo[2];
extern struct tm *_time_t2tm(const time_t *__restrict timer,