diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-07-06 14:08:30 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-07-06 14:08:30 +0200 |
commit | f9b87aaf109366342777521fe93fe9f795e8f1fa (patch) | |
tree | 99cf5cbdccc48700b86abc3ef16beaea03c4d87e /newlib/libc/include/sys/time.h | |
parent | 910087f70fb66c4949075811a0c23963c677dffa (diff) | |
download | newlib-f9b87aaf109366342777521fe93fe9f795e8f1fa.zip newlib-f9b87aaf109366342777521fe93fe9f795e8f1fa.tar.gz newlib-f9b87aaf109366342777521fe93fe9f795e8f1fa.tar.bz2 |
Fix sys/time.h build problem due to inconsistent macro usage
https://sourceware.org/ml/newlib/2015/msg00520.html describes
how sys/time.h uses __BSD_VISIBLE while the types used in the
affected inline functions are guarded with !_POSIX_SOURCE.
Fix that by guarding the type with __BSD_VISIBLE as well.
* libc/include/sys/time.h: Explicitely include sys/cdefs.h.
* libc/include/sys/types.h: Ditto. Guard BSD convenience base types
with __BSD_VISIBLE rather than !_POSIX_SOURCE.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libc/include/sys/time.h')
-rw-r--r-- | newlib/libc/include/sys/time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index e95240e..7e7205b 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -38,6 +38,7 @@ #define _SYS_TIME_H_ #include <_ansi.h> +#include <sys/cdefs.h> #include <sys/_timeval.h> #include <sys/types.h> #include <sys/timespec.h> |