From: Felix Janda Date: Mon, 31 Oct 2016 23:41:40 +0000 (+1100) Subject: configure: remove unecessary definitions of _FILE_OFFSET_BITS X-Git-Tag: v4.9.0-rc1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a06616678f6cf6dd091f72d1cdefd11bebdb829;p=thirdparty%2Fxfsprogs-dev.git configure: remove unecessary definitions of _FILE_OFFSET_BITS now that we use AC_SYS_LARGEFILE, there is no need to explicitly define _FILE_OFFSET_BITS. Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/include/builddefs.in b/include/builddefs.in index 317adc613..aeb29059a 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -115,7 +115,7 @@ GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall # -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl ifeq ($(PKG_PLATFORM),linux) -PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 $(GCCFLAGS) +PCFLAGS = -D_GNU_SOURCE $(GCCFLAGS) ifeq ($(HAVE_UMODE_T),yes) PCFLAGS += -DHAVE_UMODE_T endif diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index 13394b683..e3c59d832 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -5,7 +5,6 @@ AC_DEFUN([AC_HAVE_FADVISE], [ AC_MSG_CHECKING([for fadvise ]) AC_TRY_COMPILE([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ posix_fadvise(0, 1, 0, POSIX_FADV_NORMAL); @@ -22,7 +21,6 @@ AC_DEFUN([AC_HAVE_MADVISE], [ AC_MSG_CHECKING([for madvise ]) AC_TRY_COMPILE([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ posix_madvise(0, 0, MADV_NORMAL); @@ -39,7 +37,6 @@ AC_DEFUN([AC_HAVE_MINCORE], [ AC_MSG_CHECKING([for mincore ]) AC_TRY_COMPILE([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ mincore(0, 0, 0); @@ -56,7 +53,6 @@ AC_DEFUN([AC_HAVE_SENDFILE], [ AC_MSG_CHECKING([for sendfile ]) AC_TRY_COMPILE([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ sendfile(0, 0, 0, 0); @@ -106,7 +102,6 @@ AC_DEFUN([AC_HAVE_FALLOCATE], [ AC_MSG_CHECKING([for fallocate]) AC_TRY_LINK([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include #include ], [ @@ -124,7 +119,6 @@ AC_DEFUN([AC_HAVE_FIEMAP], [ AC_MSG_CHECKING([for fiemap]) AC_TRY_LINK([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include #include ], [ @@ -142,7 +136,6 @@ AC_DEFUN([AC_HAVE_FIEMAP], AC_DEFUN([AC_HAVE_PREADV], [ AC_MSG_CHECKING([for preadv]) AC_TRY_LINK([ -#define _FILE_OFFSET_BITS 64 #define _BSD_SOURCE #include ], [ @@ -177,7 +170,6 @@ AC_DEFUN([AC_HAVE_SYNC_FILE_RANGE], [ AC_MSG_CHECKING([for sync_file_range]) AC_TRY_LINK([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ sync_file_range(0, 0, 0, 0); @@ -194,7 +186,6 @@ AC_DEFUN([AC_HAVE_SYNCFS], [ AC_MSG_CHECKING([for syncfs]) AC_TRY_LINK([ #define _GNU_SOURCE -#define _FILE_OFFSET_BITS 64 #include ], [ syncfs(0);