summaryrefslogtreecommitdiff
path: root/package/busybox/patches/patch-include_platform_h
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/busybox/patches/patch-include_platform_h
Initial import
Diffstat (limited to 'package/busybox/patches/patch-include_platform_h')
-rw-r--r--package/busybox/patches/patch-include_platform_h30
1 files changed, 30 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..b3c9ffd7f
--- /dev/null
+++ b/package/busybox/patches/patch-include_platform_h
@@ -0,0 +1,30 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- busybox-1.13.4.orig/include/platform.h 2008-11-09 18:28:17.000000000 +0100
++++ busybox-1.13.4/include/platform.h 2009-05-08 22:48:50.000000000 +0200
+@@ -116,7 +116,7 @@
+ # include <sex.h>
+ # define __BIG_ENDIAN__ (BYTE_ORDER == BIG_ENDIAN)
+ # define __BYTE_ORDER BYTE_ORDER
+-#elif !defined __APPLE__
++#elif !(defined __APPLE__ || defined __FreeBSD__)
+ # include <byteswap.h>
+ # include <endian.h>
+ #endif
+@@ -162,7 +162,7 @@
+
+ /* ---- Networking ------------------------------------------ */
+
+-#ifndef __APPLE__
++#if !(defined __APPLE__ || defined __FreeBSD__)
+ # include <arpa/inet.h>
+ # ifndef __socklen_t_defined
+ typedef int socklen_t;
+@@ -210,7 +210,7 @@ __extension__ typedef unsigned long long
+ #define HAVE_FEATURES_H
+ #include <stdint.h>
+ #define HAVE_STDINT_H
+-#elif !defined __APPLE__
++#elif !(defined __APPLE__ || defined __FreeBSD__)
+ /* Largest integral types. */
+ #if __BIG_ENDIAN__
+ typedef long intmax_t;