klibc-bot for Greg Thelen
2019-Jan-18 16:42 UTC
[klibc] [klibc:master] include sys/types.h in more places
Commit-ID: d015414c70bf8ec7464135e67557d6e7f2df662b
Gitweb:
http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d015414c70bf8ec7464135e67557d6e7f2df662b
Author: Greg Thelen <gthelen at google.com>
AuthorDate: Sun, 25 Feb 2018 23:16:32 -0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 2 Jan 2019 03:08:04 +0000
[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 at decadent.org.uk>
---
usr/klibc/pread.c | 1 +
usr/klibc/pwrite.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/usr/klibc/pread.c b/usr/klibc/pread.c
index 0d8c3b1..1ac3075 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 691d0e4..19b219f 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>
Seemingly Similar Threads
- [PATCH 1/4] include sys/types.h in more places
- [ablock84-btrfs:btrfs-far 19/20] fs/far/far-path.c:42:2: error: implicit declaration of function 'IS_ERR'
- v173 and current 2.6 Linus BK on x86
- [GIT PULL] klibc minor fixes
- [klibc:master] remove unused variables
