From patchwork Sun Aug 7 05:28:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Janda X-Patchwork-Id: 9266235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 029C560754 for ; Sun, 7 Aug 2016 07:36:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EACC427D4D for ; Sun, 7 Aug 2016 07:36:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF9CC27F88; Sun, 7 Aug 2016 07:36:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from oss.sgi.com (oss.sgi.com [192.48.182.195]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7943327D4D for ; Sun, 7 Aug 2016 07:36:41 +0000 (UTC) Received: from oss.sgi.com (localhost [IPv6:::1]) by oss.sgi.com (Postfix) with ESMTP id 4C3F67D02; Sun, 7 Aug 2016 02:35:56 -0500 (CDT) X-Original-To: xfs@oss.sgi.com Delivered-To: xfs@oss.sgi.com Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id A487C7CEA for ; Sun, 7 Aug 2016 02:35:51 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay3.corp.sgi.com (Postfix) with ESMTP id 0AB08AC003 for ; Sun, 7 Aug 2016 00:35:47 -0700 (PDT) X-ASG-Debug-ID: 1470555345-0bf57b369d48b110001-NocioJ Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by cuda.sgi.com with ESMTP id AgzXUUHhDukGgEPF (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 07 Aug 2016 00:35:46 -0700 (PDT) X-Barracuda-Envelope-From: felix.janda@posteo.de X-Barracuda-Effective-Source-IP: mout02.posteo.de[185.67.36.66] X-Barracuda-Apparent-Source-IP: 185.67.36.66 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 40C1220A78 for ; Sun, 7 Aug 2016 09:35:44 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3s6XQR4RCXz104R for ; Sun, 7 Aug 2016 09:35:43 +0200 (CEST) X-Mailbox-Line: From b68fd1777f0e0a4b24ef48a0c6643ce51fa1d8bf Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Felix Janda Date: Sun, 7 Aug 2016 07:28:16 +0200 Subject: [PATCH xfsprogs 02/14] remove unecessary definitions of _FILE_OFFSET_BITS To: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH xfsprogs 02/14] remove unecessary definitions of _FILE_OFFSET_BITS X-Barracuda-Connect: mout02.posteo.de[185.67.36.66] X-Barracuda-Start-Time: 1470555345 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://192.48.176.25:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 2970 X-Virus-Scanned: by bsmtpd at sgi.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.7 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.31809 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: xfs@oss.sgi.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com X-Virus-Scanned: ClamAV using ClamSMTP 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 --- include/builddefs.in | 2 +- m4/package_libcdev.m4 | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/builddefs.in b/include/builddefs.in index 7153d7a..d406615 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -114,7 +114,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 7a847e9..9ef6f80 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);