From: Christoph Hellwig Date: Thu, 15 Feb 2024 06:54:04 +0000 (+0100) Subject: io: don't redefine SEEK_DATA and SEEK_HOLE X-Git-Tag: v6.7.0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f367d5629bfaf36231486bdff9eda2e5698416a4;p=thirdparty%2Fxfsprogs-dev.git io: don't redefine SEEK_DATA and SEEK_HOLE HAVE_SEEK_DATA is never defined, so the code in xfs_io just unconditionally redefines SEEK_DATA and SEEK_HOLE. Switch to the system version instead, which has been around since Linux 3.1 and glibc of similar vintage. Signed-off-by: Christoph Hellwig Reviewed-by: "Darrick J. Wong" Signed-off-by: Carlos Maiolino --- diff --git a/io/seek.c b/io/seek.c index ffe7439c..6d387c31 100644 --- a/io/seek.c +++ b/io/seek.c @@ -35,11 +35,6 @@ seek_help(void) "\n")); } -#ifndef HAVE_SEEK_DATA -#define SEEK_DATA 3 /* seek to the next data */ -#define SEEK_HOLE 4 /* seek to the next hole */ -#endif - /* values for flag variable */ #define SEEK_DFLAG (1 << 0) #define SEEK_HFLAG (1 << 1)