summaryrefslogtreecommitdiff
path: root/include/rpc/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rpc/types.h')
-rw-r--r--include/rpc/types.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/rpc/types.h b/include/rpc/types.h
index 8eff8e718..469576e52 100644
--- a/include/rpc/types.h
+++ b/include/rpc/types.h
@@ -33,6 +33,19 @@
#ifndef _RPC_TYPES_H
#define _RPC_TYPES_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>
+
typedef int bool_t;
typedef int enum_t;
/* This needs to be changed to uint32_t in the future */