summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2015-11-04 18:33:16 +0000
committerFelix Fietkau2015-11-04 18:33:16 +0000
commita921e3ded051746f9f7cd5e5a312fb6771716aac (patch)
treedae850f60c3bd1143723cda01575a76b9483303f
parent308e9964bfb623773dc0dcc99ef9d18d1551d6ae (diff)
downloadlibrpc-uclibc-master.tar.gz
fix build with uclibc-ngHEADmaster
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--rpc/compat.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/rpc/compat.h b/rpc/compat.h
index b49fe77..ad8319c 100644
--- a/rpc/compat.h
+++ b/rpc/compat.h
@@ -14,16 +14,12 @@
#include <poll.h>
#include <pthread.h>
-#ifdef __UCLIBC__
-#include <bits/libc-lock.h>
-#else
#undef __UCLIBC_MUTEX_STATIC
#undef __UCLIBC_MUTEX_LOCK
#undef __UCLIBC_MUTEX_UNLOCK
#define __UCLIBC_MUTEX_STATIC(M,I) static pthread_mutex_t M = I
#define __UCLIBC_MUTEX_LOCK(M) pthread_mutex_lock(&(M))
#define __UCLIBC_MUTEX_UNLOCK(M) pthread_mutex_unlock(&(M))
-#endif
#define smallint int