summaryrefslogtreecommitdiff
path: root/sci-geosciences/osmctools/files/osmctools-0.9-gcc15.patch
blob: a8a4f2a693c2f941aebf498896cf105c692e9da3 (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
46
47
48
49
50
51
52
53
54
55
56
diff -durN a/src/osmconvert.c b/src/osmconvert.c
--- a/src/osmconvert.c
+++ b/src/osmconvert.c
@@ -464,6 +464,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdbool.h>
 #include <locale.h>
 #include <time.h>
 #include <ctype.h>
@@ -471,7 +472,6 @@
 #include <fcntl.h>
 #include <signal.h>
 
-typedef enum {false= 0,true= 1} bool;
 typedef uint8_t byte;
 typedef unsigned int uint;
 #define isdig(x) isdigit((unsigned char)(x))
diff -durN a/src/osmfilter.c b/src/osmfilter.c
--- a/src/osmfilter.c
+++ b/src/osmfilter.c
@@ -377,13 +377,13 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdbool.h>
 #include <time.h>
 #include <ctype.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <signal.h>
 
-typedef enum {false= 0,true= 1} bool;
 typedef uint8_t byte;
 typedef unsigned int uint;
 #define isdig(x) isdigit((unsigned char)(x))
diff -durN a/src/osmupdate.c b/src/osmupdate.c
--- a/src/osmupdate.c
+++ b/src/osmupdate.c
@@ -172,6 +172,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdbool.h>
 #include <errno.h>
 #include <time.h>
 #include <ctype.h>
@@ -180,7 +181,6 @@
 #include <signal.h>
 #include <sys/stat.h>
 
-typedef enum {false= 0,true= 1} bool;
 typedef uint8_t byte;
 typedef unsigned int uint;
 #define isdig(x) isdigit((unsigned char)(x))