summaryrefslogtreecommitdiff
path: root/sys-boot/netboot/files/netboot-0.10.2-configure-clang16.patch
blob: 41c13bb634e2c4c324b15c4f9f417caeccfc7ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
https://bugs.gentoo.org/875116
--- a/configure
+++ b/configure
@@ -10772,6 +10772,7 @@ else
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #ifdef RTLD_GLOBAL
 #  define LT_DLGLOBAL		RTLD_GLOBAL
@@ -25362,7 +25363,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-
+#include <stdlib.h>
 #pragma pack(1)
 			struct {
 				char c[3];
@@ -25441,7 +25442,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
-
+#include <stdlib.h>
 #pragma options align=packed
 				struct {
 					char c[3];
@@ -27724,6 +27725,7 @@ _ACEOF
 cat confdefs.h >>conftest.$ac_ext
 cat >>conftest.$ac_ext <<_ACEOF
 /* end confdefs.h.  */
+#include <stdlib.h>
 
 #ifdef USE_PACKED
 # define PACKED __attribute__((packed))