Avoid potential negative array index access to cached text.
[LibreOffice.git] / external / firebird / configure-c99.patch
bloba62a63fb024e5da4bf4b74689813057494ee1093
1 --- configure
2 +++ configure
3 @@ -20518,8 +20518,9 @@
4 else
5 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6 /* end confdefs.h. */
7 +#include <stdlib.h>
8 #include <semaphore.h>
9 - main () {
10 + int main () {
11 sem_t s;
12 exit(sem_init(&s,0,0));
14 @@ -21263,8 +21264,9 @@
15 else
16 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17 /* end confdefs.h. */
18 +#include <stdlib.h>
19 #include <unistd.h>
20 - main () {
21 + int main () {
22 exit(!(sizeof(off_t) == 8));
24 _ACEOF
25 @@ -21478,8 +21480,9 @@
26 else
27 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28 /* end confdefs.h. */
29 +#include <stdlib.h>
30 #include <semaphore.h>
31 -main () {
32 +int main () {
33 struct s {
34 char a;
35 union { long long x; sem_t y; } b;
36 @@ -21514,7 +21517,8 @@
37 else
38 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39 /* end confdefs.h. */
40 -main () {
41 +#include <stdlib.h>
42 +int main () {
43 struct s {
44 char a;
45 double b;