diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-19 18:33:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-19 18:33:32 +0100 |
commit | 98e07066854de558bb5651b7305d2da527048d0b (patch) | |
tree | 38a598508fbf7d525de0c8ab7454081042af347c /package/busybox/patches/patch-include_platform_h | |
parent | 25631be7315cdddc0cf2ea273f3e06332128d36d (diff) | |
parent | 0102d12701a8634300c4b174e5bbeb898218ba18 (diff) |
Merge branch 'master' of openadk.org:/git/openadk
Diffstat (limited to 'package/busybox/patches/patch-include_platform_h')
-rw-r--r-- | package/busybox/patches/patch-include_platform_h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/package/busybox/patches/patch-include_platform_h b/package/busybox/patches/patch-include_platform_h new file mode 100644 index 000000000..7c5539efe --- /dev/null +++ b/package/busybox/patches/patch-include_platform_h @@ -0,0 +1,47 @@ +--- busybox-1.15.2.orig/include/platform.h Sat Sep 26 15:14:33 2009 ++++ busybox-1.15.2/include/platform.h Sat Dec 19 12:53:00 2009 +@@ -7,6 +7,8 @@ + #ifndef BB_PLATFORM_H + #define BB_PLATFORM_H 1 + ++#include <sys/param.h> ++ + /* Convenience macros to test the version of gcc. */ + #undef __GNUC_PREREQ + #if defined __GNUC__ && defined __GNUC_MINOR__ +@@ -133,7 +135,7 @@ char *strchrnul(const char *s, int c); + # define bswap_32 __bswap32 + # define bswap_16 __bswap16 + # define __BIG_ENDIAN__ (_BYTE_ORDER == _BIG_ENDIAN) +-#elif !defined __APPLE__ ++#elif !(defined __APPLE__ || defined BSD) + # include <byteswap.h> + # include <endian.h> + #endif +@@ -190,7 +192,7 @@ char *strchrnul(const char *s, int c); + + /* ---- Networking ------------------------------------------ */ + +-#ifndef __APPLE__ ++#if !(defined __APPLE__ || defined BSD) + # include <arpa/inet.h> + # if !defined(__socklen_t_defined) && !defined(_SOCKLEN_T_DECLARED) + typedef int socklen_t; +@@ -202,7 +204,7 @@ typedef int socklen_t; + /* ---- Compiler dependent settings ------------------------- */ + + #if (defined __digital__ && defined __unix__) \ +- || defined __APPLE__ || defined __FreeBSD__ ++ || defined __APPLE__ || defined __FreeBSD__ || defined BSD + # undef HAVE_MNTENT_H + # undef HAVE_SYS_STATFS_H + #else +@@ -231,7 +233,7 @@ typedef int socklen_t; + # define HAVE_FEATURES_H + # include <stdint.h> + # define HAVE_STDINT_H +-#elif !defined __APPLE__ ++#elif !(defined __APPLE__ || defined BSD) + /* Largest integral types. */ + # if BB_BIG_ENDIAN + /* Looks BROKEN! */ |