_GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE
[musl] / include / stdlib.h
index 644325e..0a8de86 100644 (file)
@@ -147,7 +147,7 @@ char *fcvt(double, int, int *, int *);
 char *gcvt(double, int, char *);
 #endif
 
 char *gcvt(double, int, char *);
 #endif
 
-#ifdef _LARGEFILE64_SOURCE
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
 #define mkstemp64 mkstemp
 #endif
 
 #define mkstemp64 mkstemp
 #endif