fix build with uclibc-ng
[project/librpc-uclibc.git] / rpc / compat.h
index de8b497..ad8319c 100644 (file)
 #define __UCLIBC_HAS_THREADS__
 #endif
 
-#include <sys/poll.h>
+#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