Blame SOURCES/zziplib-0.13.67-multilib-32.patch

a995b3
--- ./a/zzip/_config.h	2018-10-11 12:28:07.994739469 +0200
a995b3
+++ ./b/zzip/_config.h	2018-10-11 10:30:48.000000000 +0200
a995b3
@@ -133,9 +133,11 @@
a995b3
 
a995b3
 /* whether the system defaults to 32bit off_t but can do 64bit when requested
a995b3
    */
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
@@ -185,7 +187,11 @@
a995b3
 
a995b3
 /* The number of bytes in type long */
a995b3
 #ifndef ZZIP_SIZEOF_LONG 
a995b3
-#define ZZIP_SIZEOF_LONG  4 
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
@@ -221,9 +227,11 @@
a995b3
 #endif
a995b3
 
a995b3
 /* Number of bits in a file offset, on hosts where this is settable. */
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 */