]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Don't redefine macro in util.h
authorNick Terrell <terrelln@fb.com>
Fri, 23 Sep 2016 01:02:39 +0000 (18:02 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 23 Sep 2016 01:02:39 +0000 (18:02 -0700)
programs/util.h

index 9d28c82d78d132eb52d25afca7943ce69d4f08a3..aabebe961306c7dc2a343e34a0d9acecf7412833 100644 (file)
@@ -31,12 +31,12 @@ extern "C" {
 
 
 /* Unix Large Files support (>4GB) */
-#if !defined(__LP64__)              /* No point defining Large file for 64 bit */
-#   define _FILE_OFFSET_BITS 64     /* turn off_t into a 64-bit type for ftello, fseeko */
-#   if defined(__sun__)             /* Sun Solaris 32-bits requires specific definitions */
-#      define _LARGEFILE_SOURCE     /* fseeko, ftello */
-#   else
-#      define _LARGEFILE64_SOURCE   /* off64_t, fseeko64, ftello64 */
+#if !defined(__LP64__)                                  /* No point defining Large file for 64 bit */
+#   define _FILE_OFFSET_BITS 64                         /* turn off_t into a 64-bit type for ftello, fseeko */
+#   if defined(__sun__) && !defined(_LARGEFILE_SOURCE)  /* Sun Solaris 32-bits requires specific definitions */
+#      define _LARGEFILE_SOURCE                         /* fseeko, ftello */
+#   elif !defined(_LARGEFILE64_SOURCE)
+#      define _LARGEFILE64_SOURCE                       /* off64_t, fseeko64, ftello64 */
 #   endif
 #endif