summaryrefslogtreecommitdiff
path: root/include/rpc/xdr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rpc/xdr.h')
-rw-r--r--include/rpc/xdr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 0b703445a..83707cc19 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -36,6 +36,17 @@
#ifndef _RPC_XDR_H
#define _RPC_XDR_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
+#endif
#include <features.h>
#include <sys/types.h>
#include <rpc/types.h>