aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2018-02-25 23:16:32 -0800
committerBen Hutchings <ben@decadent.org.uk>2019-01-02 03:08:04 +0000
commitd015414c70bf8ec7464135e67557d6e7f2df662b (patch)
treea337cb4edd67fd751daf30d9636abf132713a60e
parent8cb2792d8f7317c336ccc98f99199ae579ac84c6 (diff)
downloadklibc-d015414c70bf8ec7464135e67557d6e7f2df662b.tar.gz
[klibc] include sys/types.h in more places
Include sys/types.h to avoid compilation warnings: In file included from $LINUX/usr/include/linux/byteorder/little_endian.h:12:0, from $LINUX/usr/include/asm/byteorder.h:5, from $KLIBC/usr/klibc/../include/klibc/endian.h:11, from $KLIBC/usr/klibc/../include/endian.h:8, from $KLIBC/usr/klibc/pread.c:7: $LINUX/usr/include/linux/types.h:22:0: warning: "__bitwise" redefined In file included from $KLIBC/usr/klibc/../include/klibc/endian.h:10:0, from $KLIBC/usr/klibc/../include/endian.h:8, from $KLIBC/usr/klibc/pread.c:7: $KLIBC/usr/klibc/../include/klibc/compiler.h:144:0: note: this is the location of the previous definition In file included from $LINUX/usr/include/linux/byteorder/little_endian.h:12:0, from $LINUX/usr/include/asm/byteorder.h:5, from $KLIBC/usr/klibc/../include/klibc/endian.h:11, from $KLIBC/usr/klibc/../include/endian.h:8, from $KLIBC/usr/klibc/pwrite.c:7: $LINUX/usr/include/linux/types.h:22:0: warning: "__bitwise" redefined In file included from $KLIBC/usr/klibc/../include/klibc/endian.h:10:0, from $KLIBC/usr/klibc/../include/endian.h:8, from $KLIBC/usr/klibc/pwrite.c:7: $KLIBC/usr/klibc/../include/klibc/compiler.h:144:0: note: this is the location of the previous definition Signed-off-by: Greg Thelen <gthelen>google.com> Link: https://www.zytor.com/pipermail/klibc/2018-February/003976.html Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--usr/klibc/pread.c1
-rw-r--r--usr/klibc/pwrite.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr/klibc/pread.c b/usr/klibc/pread.c
index 0d8c3b13f4fc87..1ac30756c32d40 100644
--- a/usr/klibc/pread.c
+++ b/usr/klibc/pread.c
@@ -4,6 +4,7 @@
* Some architectures need to wrap the system call
*/
+#include <sys/types.h>
#include <endian.h>
#include <sys/syscall.h>
diff --git a/usr/klibc/pwrite.c b/usr/klibc/pwrite.c
index 691d0e4a1a74cf..19b219f163fc87 100644
--- a/usr/klibc/pwrite.c
+++ b/usr/klibc/pwrite.c
@@ -4,6 +4,7 @@
* Some architectures need to wrap the system call
*/
+#include <sys/types.h>
#include <endian.h>
#include <sys/syscall.h>