]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
configure: don't check for readdir
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Feb 2024 06:54:13 +0000 (07:54 +0100)
committerCarlos Maiolino <cem@kernel.org>
Wed, 13 Mar 2024 07:48:37 +0000 (08:48 +0100)
readdir has been part of Posix since the very beginning.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
configure.ac
include/builddefs.in
io/Makefile
io/io.h
m4/package_libcdev.m4

index 5f1478f688b3e4a3b136ffe10ba3e1b464313000..68d50e2d2a5a518fa27b5369451201cd0c910bc9 100644 (file)
@@ -168,7 +168,6 @@ AC_HAVE_PREADV
 AC_HAVE_COPY_FILE_RANGE
 AC_HAVE_SYNCFS
 AC_HAVE_FLS
-AC_HAVE_READDIR
 AC_HAVE_FSETXATTR
 AC_HAVE_MREMAP
 AC_NEED_INTERNAL_FSXATTR
index 9efdf3b6b96d1abb62adadbc710601f66f8bc706..86fc5274230a0918db61cd87f5739703f81bfad4 100644 (file)
@@ -95,7 +95,6 @@ HAVE_PREADV = @have_preadv@
 HAVE_PWRITEV2 = @have_pwritev2@
 HAVE_COPY_FILE_RANGE = @have_copy_file_range@
 HAVE_SYNCFS = @have_syncfs@
-HAVE_READDIR = @have_readdir@
 HAVE_FLS = @have_fls@
 HAVE_FSETXATTR = @have_fsetxattr@
 HAVE_MREMAP = @have_mremap@
index 0709f8f21f415333daf895562721756c005b7edd..837716238e8a8cf8169fa6261fc549ccac9f6913 100644 (file)
@@ -14,7 +14,7 @@ CFILES = init.c \
        link.c mmap.c open.c parent.c pread.c prealloc.c pwrite.c reflink.c \
        resblks.c scrub.c seek.c shutdown.c stat.c swapext.c sync.c \
        truncate.c utimes.c fadvise.c sendfile.c madvise.c mincore.c fiemap.c \
-       sync_file_range.c
+       sync_file_range.c readdir.c
 
 LLDLIBS = $(LIBXCMD) $(LIBHANDLE) $(LIBFROG) $(LIBPTHREAD) $(LIBUUID)
 LTDEPENDENCIES = $(LIBXCMD) $(LIBHANDLE) $(LIBFROG)
@@ -46,11 +46,6 @@ ifeq ($(HAVE_PWRITEV2),yes)
 LCFLAGS += -DHAVE_PWRITEV2
 endif
 
-ifeq ($(HAVE_READDIR),yes)
-CFILES += readdir.c
-LCFLAGS += -DHAVE_READDIR
-endif
-
 ifeq ($(HAVE_MREMAP),yes)
 LCFLAGS += -DHAVE_MREMAP
 endif
diff --git a/io/io.h b/io/io.h
index 8e044e522ffb21102cb39f4d35b0db41bdd3d845..e06dff53f895a0909c670e4b37584eaa40e1dce6 100644 (file)
--- a/io/io.h
+++ b/io/io.h
@@ -129,15 +129,8 @@ extern void                copy_range_init(void);
 #endif
 
 extern void            sync_range_init(void);
-
-#ifdef HAVE_READDIR
 extern void            readdir_init(void);
-#else
-#define readdir_init()         do { } while (0)
-#endif
-
 extern void            reflink_init(void);
-
 extern void            cowextsize_init(void);
 
 #ifdef HAVE_GETFSMAP
index 5a2290de11d66488e08d7a84e1fb086a5de4cce2..25d869841e2924588acb3170848cf97358f79d8b 100644 (file)
@@ -91,23 +91,6 @@ syncfs(0);
     AC_SUBST(have_syncfs)
   ])
 
-#
-# Check if we have a readdir libc call
-#
-AC_DEFUN([AC_HAVE_READDIR],
-  [ AC_MSG_CHECKING([for readdir])
-    AC_LINK_IFELSE(
-    [  AC_LANG_PROGRAM([[
-#include <dirent.h>
-       ]], [[
-readdir(0);
-       ]])
-    ], have_readdir=yes
-       AC_MSG_RESULT(yes),
-       AC_MSG_RESULT(no))
-    AC_SUBST(have_readdir)
-  ])
-
 #
 # Check if we have a flc call (Mac OS X)
 #