summaryrefslogtreecommitdiffstats
path: root/external/firebird/configure-c99.patch
blob: a62a63fb024e5da4bf4b74689813057494ee1093 (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
38
39
40
41
42
43
44
45
--- configure
+++ configure
@@ -20518,8 +20518,9 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <stdlib.h>
 #include <semaphore.h>
-	main () {
+	int main () {
 		sem_t s;
 		exit(sem_init(&s,0,0));
 		}
@@ -21263,8 +21264,9 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <stdlib.h>
 #include <unistd.h>
-    main () {
+    int main () {
     exit(!(sizeof(off_t) == 8));
   }
 _ACEOF
@@ -21478,8 +21480,9 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+#include <stdlib.h>
 #include <semaphore.h>
-main () {
+int main () {
   struct s {
     char a;
     union { long long x; sem_t y; } b;
@@ -21514,7 +21517,8 @@
 else
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-main () {
+#include <stdlib.h>
+int main () {
   struct s {
     char a;
     double b;