Whamcloud - gitweb
LU-17808 Revert "Remove explicit #define of _FILE_OFFSET_BITS" 47/55147/3
authorAndreas Dilger <adilger@dilger.ca>
Sat, 18 May 2024 07:27:20 +0000 (01:27 -0600)
committerLi Dongyang <dongyangli@ddn.com>
Tue, 4 Jun 2024 00:04:52 +0000 (00:04 +0000)
This reverts commit 3ab99d9b6022ffa369e8ce7ae5643a30028d0db1.

this breaks building for Ubuntu systems.

Change-Id: I4b2db67077d110f324e3037bbf4e047ef74ee987
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Chabge-Id: I12345678901234567890123456789012345254035
Reviewed-on: https://review.whamcloud.com/c/tools/e2fsprogs/+/55147
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
lib/ext2fs/getenv.c
lib/ext2fs/unix_io.c
misc/create_inode.c
misc/create_inode_libarchive.c
misc/e2fuzz.c
misc/findsuper.c
misc/fuse2fs.c
util/symlinks.c

index 409a78a..f279f7b 100644 (file)
 #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
 #define _XOPEN_SOURCE 600
 #define _DARWIN_C_SOURCE
+#define _FILE_OFFSET_BITS 64
+#ifndef _LARGEFILE_SOURCE
+#define _LARGEFILE_SOURCE
+#endif
+#ifndef _LARGEFILE64_SOURCE
+#define _LARGEFILE64_SOURCE
+#endif
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
index f8b5920..298c1f0 100644 (file)
@@ -18,6 +18,7 @@
 #if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
 #define _XOPEN_SOURCE 600
 #define _DARWIN_C_SOURCE
+#define _FILE_OFFSET_BITS 64
 #ifndef _LARGEFILE_SOURCE
 #define _LARGEFILE_SOURCE
 #endif
index 4e292a2..e2676a0 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 
+#define _FILE_OFFSET_BITS       64
 #define _LARGEFILE64_SOURCE     1
 #define _GNU_SOURCE            1
 
index 8705eb1..ebd62d4 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 
+#define _FILE_OFFSET_BITS 64
 #define _LARGEFILE64_SOURCE 1
 #define _GNU_SOURCE 1
 
index 9f60bcf..0ceece9 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 #define _XOPEN_SOURCE          600
+#define _FILE_OFFSET_BITS       64
 #define _LARGEFILE64_SOURCE     1
 #define _GNU_SOURCE            1
 
index 8f275ea..1f5c3e7 100644 (file)
@@ -81,6 +81,8 @@
  *
  */
 
+#define _FILE_OFFSET_BITS 64
+
 #include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
index 177cd70..084ba28 100644 (file)
@@ -8,6 +8,7 @@
  * License.
  * %End-Header%
  */
+#define _FILE_OFFSET_BITS 64
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
index 4c72156..e9d2b01 100644 (file)
@@ -1,3 +1,11 @@
+#define _FILE_OFFSET_BITS 64
+#ifndef _LARGEFILE_SOURCE
+#define _LARGEFILE_SOURCE
+#endif
+#ifndef _LARGEFILE64_SOURCE
+#define _LARGEFILE64_SOURCE
+#endif
+
 #include <unistd.h>
 #ifndef _POSIX_SOURCE
 #define _POSIX_SOURCE