# HG changeset patch # User Adam Chlipala # Date 1265479791 18000 # Node ID 92f37d58828b7859cc06d6331852f8153068a026 # Parent 7fdea74b1dd9d0a8d6764d8b5120997cad508be1 Trying to get urweb.c working for someone in NetBSD diff -r 7fdea74b1dd9 -r 92f37d58828b src/c/urweb.c --- a/src/c/urweb.c Thu Feb 04 16:29:09 2010 -0500 +++ b/src/c/urweb.c Sat Feb 06 13:09:51 2010 -0500 @@ -1,4 +1,4 @@ -#define _XOPEN_SOURCE 600 +#define _XOPEN_SOURCE 1000 #include #include @@ -1350,7 +1350,7 @@ s2 += 2; break; default: - if (isprint(c)) + if (isprint((int)c)) *s2++ = c; else { sprintf(s2, "\\%3o", c); @@ -1386,7 +1386,7 @@ s2 += 2; break; default: - if (isprint(c)) + if (isprint((int)c)) *s2++ = c; else { sprintf(s2, "\\%3o", c); @@ -1420,7 +1420,7 @@ s2 += 2; break; default: - if (isprint(c)) + if (isprint((int)c)) *s2++ = c; else { sprintf(s2, "\\%3o", c);