summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/setenv.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-06 03:33:06 +0000
commitbd7bace793536f027790396d6358c14299e8595b (patch)
treedcc993baefecea2b27019336c4502e61d49b98c5 /libc/stdlib/setenv.c
parent7608c85140162446c3830421eb94ae42a1bbb893 (diff)
downloaduClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.bz2
uClibc-alpine-bd7bace793536f027790396d6358c14299e8595b.tar.xz
Big merge from trunk. Stop the madness!
Diffstat (limited to 'libc/stdlib/setenv.c')
-rw-r--r--libc/stdlib/setenv.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/libc/stdlib/setenv.c b/libc/stdlib/setenv.c
index 8704717a7..07af88465 100644
--- a/libc/stdlib/setenv.c
+++ b/libc/stdlib/setenv.c
@@ -29,14 +29,11 @@
#include <unistd.h>
#ifdef __UCLIBC_HAS_THREADS__
-#include <pthread.h>
+# include <pthread.h>
static pthread_mutex_t mylock = PTHREAD_MUTEX_INITIALIZER;
-# define LOCK __pthread_mutex_lock(&mylock)
-# define UNLOCK __pthread_mutex_unlock(&mylock);
-#else
-# define LOCK
-# define UNLOCK
#endif
+#define LOCK __pthread_mutex_lock(&mylock)
+#define UNLOCK __pthread_mutex_unlock(&mylock)
extern int __unsetenv (__const char *__name) attribute_hidden;