From 33a9fd74f98749da869c8d649f0a148768205867 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 17 Jun 2002 21:18:37 +0000 Subject: Update rpc headers. Add missing some headers -Erik --- include/rpc/rpc.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'include/rpc/rpc.h') 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 +#endif + #include /* some typedefs */ #include @@ -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 -- cgit v1.2.3