summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-02 15:18:07 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-03-03 15:10:16 +0900
commit6eb5802177f7314b4c553f04cf2c62eb58761b2a (patch)
tree2122b2b1924bbcfa1de553f2c1faf9daf7628273
parent4e42b5b8f89f0e288e68be7ad70f9525aebc2cff (diff)
downloadglibc-6eb5802177f7314b4c553f04cf2c62eb58761b2a.tar.gz
Horrible work-around for sunrpc/rpc/types.h
This horribly commented out preprocessor directive is because glibc presumes to know what non-standard types are provided by every compiler in the wild, it does not however know about compiler runtimes built against musl libc. Note that this effects host tooling which is used during the build process and should not effect the actual build output.
-rw-r--r--sunrpc/rpc/types.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sunrpc/rpc/types.h b/sunrpc/rpc/types.h
index beded52555..3b7814f95f 100644
--- a/sunrpc/rpc/types.h
+++ b/sunrpc/rpc/types.h
@@ -69,10 +69,18 @@ typedef unsigned long rpcport_t;
#include <sys/types.h>
#endif
-#if defined __APPLE_CC__ || defined __FreeBSD__
+/* The following, horribly commented out directive is because
+ * glibc presumes to know what non-standard types are provided
+ * by every compiler in the wild, it does not however know about
+ * compiler runtimes built against musl libc.
+ *
+ * Note that this effects host tooling which is used during the
+ * build process and should not effect the actual build output.
+ */
+/* #if defined __APPLE_CC__ || defined __FreeBSD__ */
# define __u_char_defined
# define __daddr_t_defined
-#endif
+/* #endif */
#ifndef __u_char_defined
typedef __u_char u_char;