diff options
author | maximilian attems <max@stro.at> | 2011-07-13 18:02:52 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-07-26 22:08:19 +0200 |
commit | ee265272146d32be7bfc05536832a42e47faa468 (patch) | |
tree | 3432448306152dcf613b4bfb0a050d20e824a4ca | |
parent | 58e85e18ad9479cf4e2776518e2fe88004dc61e5 (diff) | |
download | klibc-ee265272146d32be7bfc05536832a42e47faa468.tar.gz |
[klibc] header: Fix missing <sys/socket.h> include
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.
Reviewed-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/include/net/if.h | 1 | ||||
-rw-r--r-- | 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 f6aa0c05f99e2..116a176899c85 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 252d87bee30ee..e599f67541640 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 */ |