Keith Packard
2018-09-06 04:21:16 UTC
u_char is defined in sys/types.h, which doesn't appear to get
included, at least in my environments.
Signed-off-by: Keith Packard <***@keithp.com>
---
XDR is normally only built for cygwin, but I don't think there's any
reason not to let it be used on other systems. This patch
makes it compile on linux and arm-none-eabi compilers.
newlib/libc/xdr/xdr_private.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/newlib/libc/xdr/xdr_private.h b/newlib/libc/xdr/xdr_private.h
index 98c9daada..dbdaaf0f0 100644
--- a/newlib/libc/xdr/xdr_private.h
+++ b/newlib/libc/xdr/xdr_private.h
@@ -27,6 +27,7 @@
#include <stdarg.h>
#include <stdint.h>
#include <sys/param.h>
+#include <sys/types.h>
/* avoid including stdio header here */
#ifndef __VALIST
included, at least in my environments.
Signed-off-by: Keith Packard <***@keithp.com>
---
XDR is normally only built for cygwin, but I don't think there's any
reason not to let it be used on other systems. This patch
makes it compile on linux and arm-none-eabi compilers.
newlib/libc/xdr/xdr_private.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/newlib/libc/xdr/xdr_private.h b/newlib/libc/xdr/xdr_private.h
index 98c9daada..dbdaaf0f0 100644
--- a/newlib/libc/xdr/xdr_private.h
+++ b/newlib/libc/xdr/xdr_private.h
@@ -27,6 +27,7 @@
#include <stdarg.h>
#include <stdint.h>
#include <sys/param.h>
+#include <sys/types.h>
/* avoid including stdio header here */
#ifndef __VALIST
--
2.19.0.rc2
2.19.0.rc2