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

5cf55c
--- ./a/zzip/_config.h	2018-10-11 12:28:07.994739469 +0200
5cf55c
+++ ./b/zzip/_config.h	2018-10-11 10:30:48.000000000 +0200
5cf55c
@@ -133,9 +133,11 @@
5cf55c
 
5cf55c
 /* whether the system defaults to 32bit off_t but can do 64bit when requested
5cf55c
    */
5cf55c
+#if __WORDSIZE == 32
5cf55c
 #ifndef ZZIP_LARGEFILE_SENSITIVE 
5cf55c
 #define ZZIP_LARGEFILE_SENSITIVE  1 
5cf55c
 #endif
5cf55c
+#endif
5cf55c
 
5cf55c
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
5cf55c
    */
5cf55c
@@ -185,7 +187,11 @@
5cf55c
 
5cf55c
 /* The number of bytes in type long */
5cf55c
 #ifndef ZZIP_SIZEOF_LONG 
5cf55c
-#define ZZIP_SIZEOF_LONG  4 
5cf55c
+#if __WORDSIZE == 32
5cf55c
+#define ZZIP_SIZEOF_LONG  4
5cf55c
+#elif __WORDSIZE == 64
5cf55c
+#define ZZIP_SIZEOF_LONG  8 
5cf55c
+#endif
5cf55c
 #endif
5cf55c
 
5cf55c
 /* The number of bytes in type short */
5cf55c
@@ -221,9 +227,11 @@
5cf55c
 #endif
5cf55c
 
5cf55c
 /* Number of bits in a file offset, on hosts where this is settable. */
5cf55c
+#if __WORDSIZE == 32
5cf55c
 #ifndef ZZIP__FILE_OFFSET_BITS 
5cf55c
 #define ZZIP__FILE_OFFSET_BITS  64 
5cf55c
 #endif
5cf55c
+#endif
5cf55c
 
5cf55c
 /* Define for large files, on AIX-style hosts. */
5cf55c
 /* #undef _LARGE_FILES */