Fossil SCM

NetBSD wants a header for isspace()

bch 2018-12-30 00:29 trunk
Commit ae62c08cbe59770215685a30af960c68512310043a2e8bbdd3b3b92e60024bfb
1 file changed +3
--- src/mkbuiltin.c
+++ src/mkbuiltin.c
@@ -25,10 +25,13 @@
2525
** arrays in the resulting executable.
2626
*/
2727
#include <stdio.h>
2828
#include <stdlib.h>
2929
#include <string.h>
30
+#ifdef __NetBSD__
31
+#include <ctype.h> /* isspace() */
32
+#endif
3033
3134
3235
/*
3336
** Read the entire content of the file named zFilename into memory obtained
3437
** from malloc() and return a pointer to that memory. Write the size of the
3538
--- src/mkbuiltin.c
+++ src/mkbuiltin.c
@@ -25,10 +25,13 @@
25 ** arrays in the resulting executable.
26 */
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
 
 
 
30
31
32 /*
33 ** Read the entire content of the file named zFilename into memory obtained
34 ** from malloc() and return a pointer to that memory. Write the size of the
35
--- src/mkbuiltin.c
+++ src/mkbuiltin.c
@@ -25,10 +25,13 @@
25 ** arrays in the resulting executable.
26 */
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
30 #ifdef __NetBSD__
31 #include <ctype.h> /* isspace() */
32 #endif
33
34
35 /*
36 ** Read the entire content of the file named zFilename into memory obtained
37 ** from malloc() and return a pointer to that memory. Write the size of the
38

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button