fix up errno references
[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 #include <errno.h>
9
10 #undef __UCLIBC_HAS_THREADS__
11 #include <bits/uClibc_mutex.h>
12 #include <sys/poll.h>
13
14 #if 0
15 #undef __UCLIBC_MUTEX_LOCK
16 #undef __UCLIBC_MUTEX_UNLOCK
17 #define __UCLIBC_MUTEX_LOCK(M) pthread_mutex_lock(&(M))
18 #define __UCLIBC_MUTEX_UNLOCK(M) pthread_mutex_unlock(&(M))
19 #endif
20
21 #define smallint int
22
23 #define _(...) __VA_ARGS__
24 #define internal_function
25 #define attribute_hidden
26 #define attribute_unused
27 #define attribute_noreturn
28 #define libc_hidden_def(...)
29
30 #endif