- add check for UCLIBC_HAS_LFS.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 21 Sep 2007 14:22:29 +0000 (14:22 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 21 Sep 2007 14:22:29 +0000 (14:22 -0000)
  Fixes compilation error if LARGEFLE support is off

package/fakeroot/fakeroot-uclibc-LFS.diff [deleted file]
package/fakeroot/fakeroot-uclibc-LFS.patch [new file with mode: 0644]

diff --git a/package/fakeroot/fakeroot-uclibc-LFS.diff b/package/fakeroot/fakeroot-uclibc-LFS.diff
deleted file mode 100644 (file)
index 57976ca..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -u fakeroot-1.7.1.orig/communicate.h fakeroot-1.7.1/communicate.h
---- fakeroot-1.7.1.orig/communicate.h  2005-10-02 17:35:36.000000000 +0200
-+++ fakeroot-1.7.1/communicate.h       2007-09-20 19:43:38.000000000 +0200
-@@ -35,7 +35,9 @@
- #endif
- /* Then decide whether we do or do not use the stat64 support */
--#if defined(sun) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
-+#if defined(sun) \
-+      || (!defined __UCLIBC__ && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1))) \
-+      || (defined __UCLIBC__ && defined UCLIBC_HAS_LFS)
- # define STAT64_SUPPORT
- #else
- # warning Not using stat64 support
diff --git a/package/fakeroot/fakeroot-uclibc-LFS.patch b/package/fakeroot/fakeroot-uclibc-LFS.patch
new file mode 100644 (file)
index 0000000..57976ca
--- /dev/null
@@ -0,0 +1,14 @@
+diff -u fakeroot-1.7.1.orig/communicate.h fakeroot-1.7.1/communicate.h
+--- fakeroot-1.7.1.orig/communicate.h  2005-10-02 17:35:36.000000000 +0200
++++ fakeroot-1.7.1/communicate.h       2007-09-20 19:43:38.000000000 +0200
+@@ -35,7 +35,9 @@
+ #endif
+ /* Then decide whether we do or do not use the stat64 support */
+-#if defined(sun) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
++#if defined(sun) \
++      || (!defined __UCLIBC__ && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1))) \
++      || (defined __UCLIBC__ && defined UCLIBC_HAS_LFS)
+ # define STAT64_SUPPORT
+ #else
+ # warning Not using stat64 support