add support for ugly *64 functions with _LARGEFILE64_SOURCE
[musl] / include / stdlib.h
index 9c8a118..11331d9 100644 (file)
@@ -128,7 +128,7 @@ void lcong48 (unsigned short [7]);
 #endif
 
 #if defined(_GNU_SOURCE)
-void *alloca(size_t);
+#include <alloca.h>
 char *mktemp (char *);
 void *valloc (size_t);
 void *memalign(size_t, size_t);
@@ -139,6 +139,9 @@ char *fcvt(double, int, int *, int *);
 char *gcvt(double, int, char *);
 #endif
 
+#ifdef _LARGEFILE64_SOURCE
+#define mkstemp64 mkstemp
+#endif
 
 #ifdef __cplusplus
 }