aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-15 07:54:22 +0100
committerCarlos Maiolino <cem@kernel.org>2024-03-13 08:48:37 +0100
commit86b43bd0ddc5e565252cf26d9ccc94bf409a2fb5 (patch)
tree3623847533ea7efd7430771338a2ad6d6636d84e
parent810b515b444fb0bcc81c2056fba964ff686a7e92 (diff)
downloadxfsprogs-dev-86b43bd0ddc5e565252cf26d9ccc94bf409a2fb5.tar.gz
configure: don't check for fstatat
fstatat has been supported since Linux 2.6.16 and glibc 2.4. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--configure.ac1
-rw-r--r--include/builddefs.in1
-rw-r--r--m4/package_libcdev.m414
-rw-r--r--scrub/Makefile4
4 files changed, 2 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index b0c76d6191..94a4e7ee25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -182,7 +182,6 @@ if test "$enable_scrub" = "yes"; then
AC_MSG_ERROR([libicu not found.])
fi
fi
-AC_HAVE_FSTATAT
AC_HAVE_SG_IO
AC_HAVE_HDIO_GETGEO
AC_CONFIG_SYSTEMD_SYSTEM_UNIT_DIR
diff --git a/include/builddefs.in b/include/builddefs.in
index 2d89a41f7d..a602827293 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -102,7 +102,6 @@ HAVE_MALLINFO = @have_mallinfo@
HAVE_MALLINFO2 = @have_mallinfo2@
HAVE_LIBATTR = @have_libattr@
HAVE_LIBICU = @have_libicu@
-HAVE_FSTATAT = @have_fstatat@
HAVE_SG_IO = @have_sg_io@
HAVE_HDIO_GETGEO = @have_hdio_getgeo@
HAVE_SYSTEMD = @have_systemd@
diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4
index 46abf74600..458081b907 100644
--- a/m4/package_libcdev.m4
+++ b/m4/package_libcdev.m4
@@ -178,20 +178,6 @@ test = mallinfo2();
])
#
-# Check if we have a fstatat call
-#
-AC_DEFUN([AC_HAVE_FSTATAT],
- [ AC_CHECK_DECL([fstatat],
- have_fstatat=yes,
- [],
- [#define _GNU_SOURCE
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <unistd.h>])
- AC_SUBST(have_fstatat)
- ])
-
-#
# Check if we have the SG_IO ioctl
#
AC_DEFUN([AC_HAVE_SG_IO],
diff --git a/scrub/Makefile b/scrub/Makefile
index c6ca3cff76..dc6fadc919 100644
--- a/scrub/Makefile
+++ b/scrub/Makefile
@@ -6,11 +6,11 @@ TOPDIR = ..
builddefs=$(TOPDIR)/include/builddefs
include $(builddefs)
-SCRUB_PREREQS=$(HAVE_FSTATAT)$(HAVE_GETFSMAP)
+SCRUB_PREREQS=$(HAVE_GETFSMAP)
scrub_svcname=xfs_scrub@.service
-ifeq ($(SCRUB_PREREQS),yesyes)
+ifeq ($(SCRUB_PREREQS),yes)
LTCOMMAND = xfs_scrub
INSTALL_SCRUB = install-scrub
XFS_SCRUB_ALL_PROG = xfs_scrub_all