add patch to lets build libffi with uclibc-master

This commit is contained in:
Stephan Raue 2009-08-02 23:54:42 +02:00
parent 9b8ac23552
commit b07b5ce44e
2 changed files with 28 additions and 0 deletions

View File

@ -11,6 +11,7 @@ cd $PKG_BUILD
--sysconfdir=/etc \
--disable-static \
--enable-shared \
--disable-debug \
make

View File

@ -0,0 +1,27 @@
see: https://svn.tfm.ro/tfm/server/uClibc/trunk/uClibc-0.9.30.1-tfm.patch
diff -Naur libffi-3.0.8/include/ffi.h.in libffi-3.0.8.patch/include/ffi.h.in
--- libffi-3.0.8/include/ffi.h.in 2008-04-03 20:57:34.000000000 +0200
+++ libffi-3.0.8.patch/include/ffi.h.in 2009-08-01 23:12:05.000000000 +0200
@@ -70,19 +70,8 @@
#include <stddef.h>
#include <limits.h>
-/* LONG_LONG_MAX is not always defined (not if STRICT_ANSI, for example).
- But we can find it either under the correct ANSI name, or under GNU
- C's internal name. */
-#ifdef LONG_LONG_MAX
-# define FFI_LONG_LONG_MAX LONG_LONG_MAX
-#else
-# ifdef LLONG_MAX
-# define FFI_LONG_LONG_MAX LLONG_MAX
-# else
-# ifdef __GNUC__
-# define FFI_LONG_LONG_MAX __LONG_LONG_MAX__
-# endif
-# endif
+#if defined __USE_ISOC99 && defined __GNUC__
+# define FFI_LONG_LONG_MAX __LONG_LONG_MAX__
#endif
/* The closure code assumes that this works on pointers, i.e. a size_t */