diff options
author | Tom Rini <trini@kernel.crashing.org> | 2004-08-29 13:31:26 +0200 |
---|---|---|
committer | Tom Rini <trini@kernel.crashing.org> | 2004-08-29 13:31:26 +0200 |
commit | dca377a6ac0514f8dbc03b42799a6b422828b87e (patch) | |
tree | 4e5bbf69e0caa8fd3ab232f7724ed6f343c37563 /scripts | |
parent | 9a276d679ed8665e5fbbde5a7b5b6ba05cf07849 (diff) | |
download | history-dca377a6ac0514f8dbc03b42799a6b422828b87e.tar.gz |
kbuild: Use inttypes.h when stdint.h are not available
The following is from Jean-Christophe Dubois <jdubois@mc.com>.
On Solaris 2.8, <stdint.h> does not exist, but <inttypes.h> does.
However, on Cygwin (the other odd place that the kernel is compiled
on) <inttypes.h> doesn't exist. So we end up testing for __sun__ and
using <inttypes.h> there, and <stdint.h> everywhere else.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mod/sumversion.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index b41b718edffefa..86ea6a34d7919c 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c @@ -1,5 +1,9 @@ #include <netinet/in.h> +#ifdef __sun__ +#include <inttypes.h> +#else #include <stdint.h> +#endif #include <ctype.h> #include <errno.h> #include <string.h> |