c1c74d57412331071a3a514ac37499c4214a3d13
[project/librpc-uclibc.git] / compat.h
1 #ifndef __UCLIBC_COMPAT_H
2 #define __UCLIBC_COMPAT_H
3
4 #define _XOPEN_SOURCE
5 #define _GNU_SOURCE
6
7 #include <features.h>
8
9 #undef __UCLIBC_HAS_THREADS__
10 #include <bits/uClibc_mutex.h>
11 #include <sys/poll.h>
12
13 #if 0
14 #undef __UCLIBC_MUTEX_LOCK
15 #undef __UCLIBC_MUTEX_UNLOCK
16 #define __UCLIBC_MUTEX_LOCK(M) pthread_mutex_lock(&(M))
17 #define __UCLIBC_MUTEX_UNLOCK(M) pthread_mutex_unlock(&(M))
18 #endif
19
20 #define smallint int
21
22 #define _(...) __VA_ARGS__
23 #define internal_function
24 #define attribute_hidden
25 #define attribute_unused
26 #define attribute_noreturn
27 #define libc_hidden_def(...)
28
29 #endif