gcc/libssp: Include <stdlib.h> so that alloca() is defined.
authorSascha Wildner <saw@online.de>
Sun, 22 Nov 2015 04:13:42 +0000 (05:13 +0100)
committerSascha Wildner <saw@online.de>
Sun, 22 Nov 2015 04:13:42 +0000 (05:13 +0100)
It had started warning about this after the <malloc.h> removal.

contrib/gcc-4.7/libssp/ssp.c
contrib/gcc-5.0/libssp/ssp.c

index aaa5a32..4fcc898 100644 (file)
@@ -38,6 +38,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #endif
 #ifdef HAVE_MALLOC_H
 # include <malloc.h>
+#else
+# include <stdlib.h>
 #endif
 #ifdef HAVE_STRING_H
 # include <string.h>
index 38e3ec8..6dd4739 100644 (file)
@@ -38,6 +38,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #endif
 #ifdef HAVE_MALLOC_H
 # include <malloc.h>
+#else
+# include <stdlib.h>
 #endif
 #ifdef HAVE_STRING_H
 # include <string.h>