Explorar o código

busybox: fix compilation on FreeBSD

SVN-Revision: 22348
Jo-Philipp Wich %!s(int64=15) %!d(string=hai) anos
pai
achega
1d6d3d0d8a
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      package/busybox/patches/920-freebsd_fixes.patch

+ 11 - 0
package/busybox/patches/920-freebsd_fixes.patch

@@ -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! */