busybox: fix compilation on FreeBSD
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Jul 2010 08:28:39 +0000 (08:28 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Jul 2010 08:28:39 +0000 (08:28 +0000)
SVN-Revision: 22348

package/busybox/patches/920-freebsd_fixes.patch [new file with mode: 0644]

diff --git a/package/busybox/patches/920-freebsd_fixes.patch b/package/busybox/patches/920-freebsd_fixes.patch
new file mode 100644 (file)
index 0000000..f823417
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/include/platform.h
++++ b/include/platform.h
+@@ -253,7 +253,7 @@ typedef int socklen_t;
+ # define HAVE_FEATURES_H
+ # include <stdint.h>
+ # define HAVE_STDINT_H
+-#elif !defined __APPLE__
++#elif !defined(__APPLE__) && !defined(__FreeBSD__)
+ /* Largest integral types. */
+ # if BB_BIG_ENDIAN
+ /* Looks BROKEN! */