summaryrefslogtreecommitdiff
path: root/package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch')
-rw-r--r--package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch b/package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch
new file mode 100644
index 000000000..60f1c78cc
--- /dev/null
+++ b/package/rpm/rpm-uclibc-vs-cookie-seek-pointer.patch
@@ -0,0 +1,12 @@
+diff -ru rpm-4.4.9_vanilla/rpmio/rpmio.h rpm-4.4.9_uclibc-vs-cookie-seek-pointer/rpmio/rpmio.h
+--- rpm-4.4.9_vanilla/rpmio/rpmio.h 2007-04-28 15:55:33.000000000 +0000
++++ rpm-4.4.9_uclibc-vs-cookie-seek-pointer/rpmio/rpmio.h 2008-03-22 07:28:07.000000000 +0000
+@@ -31,7 +31,7 @@
+ * typedefs to isolate the lossage.
+ */
+ /*@{*/
+-#if !defined(__LCLINT__) && defined(__GLIBC__) && \
++#if !defined(__LCLINT__) && defined(__GLIBC__) && !defined(__UCLIBC__) && \
+ (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2))
+ #define USE_COOKIE_SEEK_POINTER 1
+ typedef _IO_off64_t _libio_off_t;