Blame SOURCES/zziplib-0.13.67-multilib.patch

a995b3
diff -up ./x86_64-redhat-linux-gnu/zzip/_config.h.orig ./x86_64-redhat-linux-gnu/zzip/_config.h
a995b3
--- ./x86_64-redhat-linux-gnu/zzip/_config.h.orig	2018-02-01 22:13:36.593910695 +0200
a995b3
+++ ./x86_64-redhat-linux-gnu/zzip/_config.h	2018-02-01 22:15:40.341476130 +0200
a995b3
@@ -133,7 +133,11 @@
a995b3
 
a995b3
 /* whether the system defaults to 32bit off_t but can do 64bit when requested
a995b3
    */
a995b3
-/* #undef LARGEFILE_SENSITIVE */
a995b3
+#if __WORDSIZE == 32
a995b3
+#ifndef ZZIP_LARGEFILE_SENSITIVE 
a995b3
+#define ZZIP_LARGEFILE_SENSITIVE  1 
a995b3
+#endif
a995b3
+#endif
a995b3
 
a995b3
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
a995b3
    */
a995b3
@@ -183,8 +187,12 @@
a995b3
 
a995b3
 /* The number of bytes in type long */
a995b3
 #ifndef ZZIP_SIZEOF_LONG 
a995b3
+#if __WORDSIZE == 32
a995b3
+#define ZZIP_SIZEOF_LONG  4
a995b3
+#elif __WORDSIZE == 64
a995b3
 #define ZZIP_SIZEOF_LONG  8 
a995b3
 #endif
a995b3
+#endif
a995b3
 
a995b3
 /* The number of bytes in type short */
a995b3
 #ifndef ZZIP_SIZEOF_SHORT 
a995b3
@@ -219,7 +227,11 @@
a995b3
 #endif
a995b3
 
a995b3
 /* Number of bits in a file offset, on hosts where this is settable. */
a995b3
-/* #undef _FILE_OFFSET_BITS */
a995b3
+#if __WORDSIZE == 32
a995b3
+#ifndef ZZIP__FILE_OFFSET_BITS 
a995b3
+#define ZZIP__FILE_OFFSET_BITS  64 
a995b3
+#endif
a995b3
+#endif
a995b3
 
a995b3
 /* Define for large files, on AIX-style hosts. */
a995b3
 /* #undef _LARGE_FILES */