_GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE
[musl] / include / sys / statfs.h
index c1cbe9e..a5a4db9 100644 (file)
@@ -16,7 +16,7 @@ typedef struct {
 int statfs (const char *, struct statfs *);
 int fstatfs (int, struct statfs *);
 
-#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
 #define statfs64 statfs
 #define fstatfs64 fstatfs
 #define fsblkcnt64_t fsblkcnt_t