diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-06 01:29:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-06 01:29:10 +0000 |
commit | aab07d0500d06e1de93280cb9900b24fd0c0875b (patch) | |
tree | 7122ec94b0498c150b69401a13f06aaea803cf50 /include/libc-internal.h | |
parent | 680f8428162687caae571090e008b42d18f2bb5a (diff) |
macro out the thread funcs in libc if threading is disabled
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r-- | include/libc-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h index 632b53ac5..469f5eba5 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -174,6 +174,14 @@ extern int __gettimeofday(struct timeval *__restrict __tv, *__restrict __timezon # define gettimeofday __gettimeofday # endif +/* #include <pthread.h> */ +# ifndef __UCLIBC_HAS_THREADS__ +# define __pthread_mutex_init(mutex, mutexattr) ((void)0) +# define __pthread_mutex_lock(mutex) ((void)0) +# define __pthread_mutex_trylock(mutex) ((void)0) +# define __pthread_mutex_unlock(mutex) ((void)0) +# endif + # endif /* IS_IN_libc */ #endif /* __ASSEMBLER__ */ |