diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-06-17 21:18:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-06-17 21:18:37 +0000 |
commit | 33a9fd74f98749da869c8d649f0a148768205867 (patch) | |
tree | 7212d3da61260694ee441133ba2210061d5e8034 /include/rpc/rpc.h | |
parent | bf0df3909a1f729dcbeb131165eec55d55fbbd81 (diff) |
Update rpc headers. Add missing some headers
-Erik
Diffstat (limited to 'include/rpc/rpc.h')
-rw-r--r-- | include/rpc/rpc.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index e7799ccb1..9236e7205 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -38,6 +38,19 @@ #ifndef _RPC_RPC_H #define _RPC_RPC_H 1 +#ifdef _LIBC +/* Some adjustments to make the libc source from glibc + * compile more easily with uClibc... */ +#ifndef __FORCE_GLIBC +#define __FORCE_GLIBC +#endif +#ifndef _GNU_SOUCE +#define _GNU_SOUCE +#endif +#define _(X) X +#include <features.h> +#endif + #include <rpc/types.h> /* some typedefs */ #include <netinet/in.h> @@ -69,7 +82,6 @@ __BEGIN_DECLS -#if 0 /* Global variables, protected for multi-threaded applications. */ extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__)); #define svc_fdset (*__rpc_thread_svc_fdset ()) @@ -92,7 +104,6 @@ extern struct pollfd **__rpc_thread_svc_pollfd (void) extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__)); #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ()) -#endif __END_DECLS |