summaryrefslogtreecommitdiff
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
commit07c1a51ed8e842fcdcd4304cd6531f6432163e15 (patch)
tree20d13aef33b1df22238bc0bab0e9478778621881
parent38bb7bdbdfdb9c180e7d47ac3885673a464539de (diff)
Trying to get urweb.c working for someone in NetBSD
-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);