From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 9460A29DF9 for ; Tue, 12 Jan 2016 14:03:00 -0600 (CST) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 280FBAC001 for ; Tue, 12 Jan 2016 12:03:00 -0800 (PST) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by cuda.sgi.com with ESMTP id KFGzB8vIobwSYUJg (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 12 Jan 2016 12:02:59 -0800 (PST) Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id B281B20B41 for ; Tue, 12 Jan 2016 21:02:57 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3pg2rd466fz5vN3 for ; Tue, 12 Jan 2016 21:02:57 +0100 (CET) Date: Tue, 12 Jan 2016 21:00:22 +0100 From: Felix Janda Subject: [PATCH 6/6] Add configure check for members of dirent for use in io/readdir.c Message-ID: <20160112200022.GG568@nyan> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Signed-off-by: Felix Janda --- configure.ac | 7 +++++++ include/builddefs.in | 4 ++++ io/Makefile | 10 ++++++++++ 3 files changed, 21 insertions(+) diff --git a/configure.ac b/configure.ac index feee50a..3d6443a 100644 --- a/configure.ac +++ b/configure.ac @@ -135,5 +135,12 @@ AC_CHECK_SIZEOF([char *]) AC_TYPE_UMODE_T AC_MANUAL_FORMAT +AC_CHECK_MEMBERS([struct dirent.d_reclen],[],[],[[#include ]]) +AC_SUBST(ac_cv_member_struct_dirent_d_reclen) +AC_CHECK_MEMBERS([struct dirent.d_off],[],[],[[#include ]]) +AC_SUBST(ac_cv_member_struct_dirent_d_off) +AC_CHECK_MEMBERS([struct dirent.d_type],[],[],[[#include ]]) +AC_SUBST(ac_cv_member_struct_dirent_d_type) + AC_CONFIG_FILES([include/builddefs]) AC_OUTPUT diff --git a/include/builddefs.in b/include/builddefs.in index b5ce336..67d963c 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -109,6 +109,10 @@ HAVE_FLS = @have_fls@ HAVE_FSETXATTR = @have_fsetxattr@ HAVE_MREMAP = @have_mremap@ +HAVE_STRUCT_DIRENT_D_RECLEN = @ac_cv_member_struct_dirent_d_reclen@ +HAVE_STRUCT_DIRENT_D_OFF = @ac_cv_member_struct_dirent_d_off@ +HAVE_STRUCT_DIRENT_D_TYPE = @ac_cv_member_struct_dirent_d_type@ + GCCFLAGS = -funsigned-char -fno-strict-aliasing -Wall # -Wbitwise -Wno-transparent-union -Wno-old-initializer -Wno-decl diff --git a/io/Makefile b/io/Makefile index 0b53f41..9574168 100644 --- a/io/Makefile +++ b/io/Makefile @@ -94,6 +94,16 @@ ifeq ($(HAVE_MREMAP),yes) LCFLAGS += -DHAVE_MREMAP endif +ifeq ($(HAVE_STRUCT_DIRENT_D_RECLEN),yes) +LCFLAGS += -D_DIRENT_HAVE_D_RECLEN +endif +ifeq ($(HAVE_STRUCT_DIRENT_D_OFF),yes) +LCFLAGS += -D_DIRENT_HAVE_D_OFF +endif +ifeq ($(HAVE_STRUCT_DIRENT_D_TYPE),yes) +LCFLAGS += -D_DIRENT_HAVE_D_TYPE +endif + default: depend $(LTCOMMAND) include $(BUILDRULES) -- 2.4.10 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs