diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/features.h | 2 | ||||
-rw-r--r-- | include/netdb.h | 2 | ||||
-rw-r--r-- | include/protocols/timed.h | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/include/features.h b/include/features.h index c943c9e6e..1b401497d 100644 --- a/include/features.h +++ b/include/features.h @@ -34,7 +34,9 @@ #define __need_uClibc_config_h #include <bits/uClibc_config.h> #undef __need_uClibc_config_h +#ifdef UCLIBC_INTERNAL #include <bits/uClibc_arch_features.h> +#endif /* For uClibc, always optimize for size -- this should disable * a lot of expensive inlining... diff --git a/include/netdb.h b/include/netdb.h index 7d76b9c26..99e02f050 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -27,7 +27,7 @@ #include <netinet/in.h> #include <stdint.h> -#ifdef __USE_MISC +#if defined __USE_MISC && defined __UCLIBC_HAS_RPC__ /* This is necessary to make this include file properly replace the Sun version. */ # include <rpc/netdb.h> diff --git a/include/protocols/timed.h b/include/protocols/timed.h index da31f69b3..8101e9924 100644 --- a/include/protocols/timed.h +++ b/include/protocols/timed.h @@ -32,7 +32,9 @@ #ifndef _PROTOCOLS_TIMED_H #define _PROTOCOLS_TIMED_H 1 +#ifdef __UCLIBC_HAS_RPC__ #include <rpc/types.h> +#endif /* * Time Synchronization Protocol |