- of course we also define glibc. argh!

This commit is contained in:
Bernhard Reutner-Fischer 2007-09-20 17:47:30 +00:00
parent 64e0ff5cf7
commit 77edb4f09b

View File

@ -1,13 +1,14 @@
diff -u fakeroot-1.7.1.orig/communicate.h fakeroot-1.7.1/communicate.h 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.orig/communicate.h 2005-10-02 17:35:36.000000000 +0200
+++ fakeroot-1.7.1/communicate.h 2007-09-20 19:36:52.000000000 +0200 +++ fakeroot-1.7.1/communicate.h 2007-09-20 19:43:38.000000000 +0200
@@ -35,7 +35,8 @@ @@ -35,7 +35,9 @@
#endif #endif
/* Then decide whether we do or do not use the stat64 support */ /* 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) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
+#if defined(sun) || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) \ +#if defined(sun) \
+ || (defined __UCLIBC__ && defined UCLIBC_HAS_LFS) + || (!defined __UCLIBC__ && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1))) \
+ || (defined __UCLIBC__ && defined UCLIBC_HAS_LFS)
# define STAT64_SUPPORT # define STAT64_SUPPORT
#else #else
# warning Not using stat64 support # warning Not using stat64 support