summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-02-06 13:09:51 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-02-06 13:09:51 -0500
commitfec4b88e37c84a86573d183a462886261b6f71f3 (patch)
tree20d13aef33b1df22238bc0bab0e9478778621881 /src
parent282ff7d141e835d51f7eaa2952ba7913ebd5c6c1 (diff)
Trying to get urweb.c working for someone in NetBSD
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index ad0d33d9..23887c2e 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 600
+#define _XOPEN_SOURCE 1000
#include <stdlib.h>
#include <stdio.h>
@@ -1350,7 +1350,7 @@ uw_Basis_string uw_Basis_jsifyString(uw_context ctx, uw_Basis_string s) {
s2 += 2;
break;
default:
- if (isprint(c))
+ if (isprint((int)c))
*s2++ = c;
else {
sprintf(s2, "\\%3o", c);
@@ -1386,7 +1386,7 @@ uw_Basis_string uw_Basis_jsifyChar(uw_context ctx, uw_Basis_char c) {
s2 += 2;
break;
default:
- if (isprint(c))
+ if (isprint((int)c))
*s2++ = c;
else {
sprintf(s2, "\\%3o", c);
@@ -1420,7 +1420,7 @@ uw_Basis_string uw_Basis_jsifyString_ws(uw_context ctx, uw_Basis_string s) {
s2 += 2;
break;
default:
- if (isprint(c))
+ if (isprint((int)c))
*s2++ = c;
else {
sprintf(s2, "\\%3o", c);