diff --git a/src/xpdev/filewrap.c b/src/xpdev/filewrap.c
index 7169e472a79f827c9b57797d10288988b43b8895..310189c66e90118d1b021adf343f27fe0af1b467 100644
--- a/src/xpdev/filewrap.c
+++ b/src/xpdev/filewrap.c
@@ -87,7 +87,7 @@ off_t DLLCALL filelength(int fd)
 }
 
 // See https://patchwork.kernel.org/patch/9289177/
-#if defined(F_OFD_SETLK) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS != 64
+#if defined(F_OFD_SETLK) && _FILE_OFFSET_BITS != 64
 	#undef F_OFD_SETLK
 #endif