From 9868494adb7734aaf8acddb557676e625ade0907 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Thu, 26 Nov 2015 16:16:58 -0500 Subject: [PATCH] Make busybox compile for 64-bits --- packages/busybox/include-platform.h.patch64 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/busybox/include-platform.h.patch64 diff --git a/packages/busybox/include-platform.h.patch64 b/packages/busybox/include-platform.h.patch64 new file mode 100644 index 000000000..fa5b6e1b3 --- /dev/null +++ b/packages/busybox/include-platform.h.patch64 @@ -0,0 +1,14 @@ +fdprintf() does not exist in 64-bit bionic. + +diff -u -r ../busybox-1.24.1/include/platform.h ./include/platform.h +--- ../busybox-1.24.1/include/platform.h 2015-07-12 22:18:47.000000000 -0400 ++++ ./include/platform.h 2015-11-26 16:14:37.061610995 -0500 +@@ -480,7 +480,7 @@ + #endif + + #if defined(ANDROID) || defined(__ANDROID__) +-# if __ANDROID_API__ < 8 ++# if __ANDROID_API__ < 8 || defined(__LP64__) + # undef HAVE_DPRINTF + # else + # define dprintf fdprintf