From 043b1e5d997d9b582a5aee37bd56e2e4f29be6e4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 6 Sep 2009 12:47:55 +0200 Subject: more C standard compat fixes from Dan Fandrich function old new delta docolon 207 204 -3 Signed-off-by: Denys Vlasenko --- libbb/kernel_version.c | 5 +++-- libbb/login.c | 4 ++-- libbb/xconnect.c | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'libbb') 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 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include /* for uname(2) */ - #include "libbb.h" +/* After libbb.h, since it needs sys/types.h on some systems */ +#include /* for uname(2) */ + /* Returns current kernel version encoded as major*65536 + minor*256 + patch, * 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 @@ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ -#include /* MAXHOSTNAMELEN */ -#include #include "libbb.h" +/* After libbb.h, since it needs sys/types.h on some systems */ +#include #define LOGIN " login: " 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 @@ * Licensed under GPLv2, see file LICENSE in this tarball for details. */ +#include /* netinet/in.h needs it */ #include #include #include -- cgit v1.2.3