From ff08974850158f4c4d815840f7c3e82a4aa12c34 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Wed, 11 Aug 2004 01:42:56 +0200 Subject: kbuild: Replace host-progs with hostprogs-y Signed-off-by: Sam Ravnborg --- scripts/basic/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/basic') diff --git a/scripts/basic/Makefile b/scripts/basic/Makefile index 3afb3bf4d12c..f22e94c3a2d1 100644 --- a/scripts/basic/Makefile +++ b/scripts/basic/Makefile @@ -11,8 +11,8 @@ # include/config/... # docproc: Used in Documentation/docbook -host-progs := fixdep split-include docproc -always := $(host-progs) +hostprogs-y := fixdep split-include docproc +always := $(hostprogs-y) # fixdep is needed to compile other host programs $(addprefix $(obj)/,$(filter-out fixdep,$(always))): $(obj)/fixdep -- cgit v1.2.3 From e78d165503d0dfefeed18f48f722f4bf4ad79014 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Wed, 11 Aug 2004 02:11:50 +0200 Subject: kbuild: Use POSIX headers for ntoh functions From: Benno When compiling Linux on Mac OSX I had trouble with scripts/sumversion.c. It includes to obtain to definitions of htonl and ntohl. On Mac OSX these are found in . After checking the POSIX specification it appears that this is the correct place to get the definitons for these functions. (http://www.opengroup.org/onlinepubs/009695399/functions/htonl.html) Using this header also appears to work on Linux (at least with Glibc-2.3.2). It seems clearer to me to go with the POSIX standard than implementing #if __APPLE__ style macros, but if such an approach is preferred I can supply patches for that instead. Signed-off-by: Sam Ravnborg --- scripts/basic/fixdep.c | 2 +- scripts/mod/sumversion.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/basic') diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 8bd6442229cf..9c03a6673aad 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -104,7 +104,7 @@ #include #include #include -#include +#include #define INT_CONF ntohl(0x434f4e46) #define INT_ONFI ntohl(0x4f4e4649) diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index b41b718edffe..631430d09e4d 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c @@ -1,4 +1,4 @@ -#include +#include #include #include #include -- cgit v1.2.3