diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-06 12:47:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-06 12:47:55 +0200 |
commit | 043b1e5d997d9b582a5aee37bd56e2e4f29be6e4 (patch) | |
tree | bab07bc427f178857896a8bf252c61ea1a5c67a2 /libbb | |
parent | 5370bfb123266ab5716f321e43d3f8f6da7d7143 (diff) | |
download | busybox-w32-043b1e5d997d9b582a5aee37bd56e2e4f29be6e4.tar.gz busybox-w32-043b1e5d997d9b582a5aee37bd56e2e4f29be6e4.tar.bz2 busybox-w32-043b1e5d997d9b582a5aee37bd56e2e4f29be6e4.zip |
more C standard compat fixes from Dan Fandrich
function old new delta
docolon 207 204 -3
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/kernel_version.c | 5 | ||||
-rw-r--r-- | libbb/login.c | 4 | ||||
-rw-r--r-- | libbb/xconnect.c | 1 |
3 files changed, 6 insertions, 4 deletions
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c index 8b9c4ec20..937d2dbfb 100644 --- a/libbb/kernel_version.c +++ b/libbb/kernel_version.c | |||
@@ -7,9 +7,10 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <sys/utsname.h> /* for uname(2) */ | ||
11 | |||
12 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | /* After libbb.h, since it needs sys/types.h on some systems */ | ||
12 | #include <sys/utsname.h> /* for uname(2) */ | ||
13 | |||
13 | 14 | ||
14 | /* Returns current kernel version encoded as major*65536 + minor*256 + patch, | 15 | /* Returns current kernel version encoded as major*65536 + minor*256 + patch, |
15 | * so, for example, to check if the kernel is greater than 2.2.11: | 16 | * so, for example, to check if the kernel is greater than 2.2.11: |
diff --git a/libbb/login.c b/libbb/login.c index ba9f4d2b5..07247a8c5 100644 --- a/libbb/login.c +++ b/libbb/login.c | |||
@@ -9,9 +9,9 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <sys/param.h> /* MAXHOSTNAMELEN */ | ||
13 | #include <sys/utsname.h> | ||
14 | #include "libbb.h" | 12 | #include "libbb.h" |
13 | /* After libbb.h, since it needs sys/types.h on some systems */ | ||
14 | #include <sys/utsname.h> | ||
15 | 15 | ||
16 | #define LOGIN " login: " | 16 | #define LOGIN " login: " |
17 | 17 | ||
diff --git a/libbb/xconnect.c b/libbb/xconnect.c index 85f93b639..a18466935 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Licensed under GPLv2, see file LICENSE in this tarball for details. | 7 | * Licensed under GPLv2, see file LICENSE in this tarball for details. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include <sys/socket.h> /* netinet/in.h needs it */ | ||
10 | #include <netinet/in.h> | 11 | #include <netinet/in.h> |
11 | #include <net/if.h> | 12 | #include <net/if.h> |
12 | #include <sys/un.h> | 13 | #include <sys/un.h> |