diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-09-28 16:42:06 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-09-28 16:42:06 +0200 |
commit | 6f89a49d17ed6ce713a513b25d1e0296344dc9a1 (patch) | |
tree | 9d46adfb7e781cd8298d13f194d8e20e50f3c943 /package | |
parent | 18aec5b03eeebcb616ec12fd22eff237b47eadfb (diff) |
add macosx compat patches from git
Diffstat (limited to 'package')
-rw-r--r-- | package/busybox/patches/005-dot-find.patch | 12 | ||||
-rw-r--r-- | package/busybox/patches/007-endianness-check.patch | 49 |
2 files changed, 61 insertions, 0 deletions
diff --git a/package/busybox/patches/005-dot-find.patch b/package/busybox/patches/005-dot-find.patch new file mode 100644 index 000000000..aaa76b77c --- /dev/null +++ b/package/busybox/patches/005-dot-find.patch @@ -0,0 +1,12 @@ +diff -Nur busybox-1.17.2.orig/scripts/gen_build_files.sh busybox-1.17.2/scripts/gen_build_files.sh +--- busybox-1.17.2.orig/scripts/gen_build_files.sh 2010-08-23 02:44:35.000000000 +0200 ++++ busybox-1.17.2/scripts/gen_build_files.sh 2010-09-28 15:15:51.000000000 +0200 +@@ -48,7 +48,7 @@ + fi + + # (Re)generate */Kbuild and */Config.in +-{ cd -- "$srctree" && find -type d; } | while read -r d; do ++{ cd -- "$srctree" && find . -type d; } | while read -r d; do + d="${d#./}" + + src="$srctree/$d/Kbuild.src" diff --git a/package/busybox/patches/007-endianness-check.patch b/package/busybox/patches/007-endianness-check.patch new file mode 100644 index 000000000..36e1e2e2e --- /dev/null +++ b/package/busybox/patches/007-endianness-check.patch @@ -0,0 +1,49 @@ +diff -Nur busybox-1.17.2.orig/include/platform.h busybox-1.17.2/include/platform.h +--- busybox-1.17.2.orig/include/platform.h 2010-08-23 02:44:35.000000000 +0200 ++++ busybox-1.17.2/include/platform.h 2010-09-28 15:20:33.000000000 +0200 +@@ -152,27 +152,37 @@ + + #if defined(__digital__) && defined(__unix__) + # include <sex.h> +-# define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN) +-# define __BYTE_ORDER BYTE_ORDER +-#elif defined __FreeBSD__ ++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ ++ || defined(__APPLE__) + # include <sys/resource.h> /* rlimit */ + # include <machine/endian.h> + # define bswap_64 __bswap64 + # define bswap_32 __bswap32 + # define bswap_16 __bswap16 +-# define __BIG_ENDIAN__ (_BYTE_ORDER == _BIG_ENDIAN) +-#elif !defined __APPLE__ ++#else + # include <byteswap.h> + # include <endian.h> + #endif + +-#if defined(__BIG_ENDIAN__) && __BIG_ENDIAN__ ++#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN + # define BB_BIG_ENDIAN 1 + # define BB_LITTLE_ENDIAN 0 +-#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN ++#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN ++# define BB_BIG_ENDIAN 0 ++# define BB_LITTLE_ENDIAN 1 ++#elif defined(_BYTE_ORDER) && _BYTE_ORDER == _BIG_ENDIAN + # define BB_BIG_ENDIAN 1 + # define BB_LITTLE_ENDIAN 0 +-#elif (defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN) || defined(__386__) ++#elif defined(_BYTE_ORDER) && _BYTE_ORDER == _LITTLE_ENDIAN ++# define BB_BIG_ENDIAN 0 ++# define BB_LITTLE_ENDIAN 1 ++#elif defined(BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN ++# define BB_BIG_ENDIAN 1 ++# define BB_LITTLE_ENDIAN 0 ++#elif defined(BYTE_ORDER) && BYTE_ORDER == LITTLE_ENDIAN ++# define BB_BIG_ENDIAN 0 ++# define BB_LITTLE_ENDIAN 1 ++#elif defined(__386__) + # define BB_BIG_ENDIAN 0 + # define BB_LITTLE_ENDIAN 1 + #else |