]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
m4: fix statx override selection if /usr/include doesn't define it
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Jan 2025 21:22:05 +0000 (13:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 16 Jan 2025 21:27:27 +0000 (13:27 -0800)
If the system headers (aka the ones in /usr/include) do not define
struct statx at all, we need to use our internal override.  The m4 code
doesn't handle this admittedly corner case, but let's fix it for anyone
trying to build new xfsprogs on a decade-old distribution.

Fixes: 409477af604f46 ("xfs_io: add support for atomic write statx fields")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
m4/package_libcdev.m4

index 6db1177350b64358e55cbaa08bc1e17c37c4b318..4ef7e8f67a3ba683667781df369afacee3846aff 100644 (file)
@@ -112,7 +112,7 @@ AC_DEFUN([AC_NEED_INTERNAL_STATX],
           need_internal_statx=yes,
           [#include <linux/stat.h>]
         )
-      ],,
+      ],need_internal_statx=yes,
       [#include <linux/stat.h>]
     )
     AC_SUBST(need_internal_statx)