]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/unix/sysv/linux/bits/statx.h
Linux: Fix __glibc_has_include use for <sys/stat.h> and statx
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / bits / statx.h
index d36f44efc60a0bed998959cd4bde396b3e6b0dae..206878723fd37881378df0c657ae990a19282bde 100644 (file)
 #endif
 
 /* Use the Linux kernel header if available.  */
-#if __glibc_has_include (<linux/stat.h>)
-# include <linux/stat.h>
+
+/* Use "" to work around incorrect macro expansion of the
+   __has_include argument (GCC PR 80005).  */
+#if __glibc_has_include ("linux/stat.h")
+# include "linux/stat.h"
 # ifdef STATX_TYPE
 #  define __statx_timestamp_defined 1
 #  define __statx_defined 1