[klibc] [PATCH] header: Fix missing <sys/socket.h> includes
maximilian attems
max at stro.at
Wed Jul 13 09:12:46 PDT 2011
Found by autotools while configuring util-linux with
./configure --without-ncurses CC=klcc
against klibc-1.5.23 version. It would complain:
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing prerequisite headers?
configure: WARNING: sys/un.h: present but cannot be compiled
configure: WARNING: sys/un.h: check for missing prerequisite headers?
This where the only two and it both cases sa_family_t def seemed
missing.
Signed-off-by: maximilian attems <max at stro.at>
---
usr/include/net/if.h | 1 +
usr/include/sys/un.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/usr/include/net/if.h b/usr/include/net/if.h
index f6aa0c0..b695292 100644
--- a/usr/include/net/if.h
+++ b/usr/include/net/if.h
@@ -1,6 +1,7 @@
#ifndef _NET_IF_H
#define _NET_IF_H
+#include <sys/socket.h>
#include <sys/types.h>
#include <linux/if.h>
diff --git a/usr/include/sys/un.h b/usr/include/sys/un.h
index 252d87b..e599f67 100644
--- a/usr/include/sys/un.h
+++ b/usr/include/sys/un.h
@@ -5,6 +5,7 @@
#ifndef _SYS_UN_H
#define _SYS_UN_H
+#include <sys/socket.h>
#include <linux/un.h>
#endif /* _SYS_UN_H */
--
1.7.5.4
More information about the klibc
mailing list