summaryrefslogtreecommitdiff
path: root/databases/gq/patches/patch-ac
blob: 13aeb581d7767ba9d612bedd7e905b84f48ba83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ac,v 1.1 2003/09/09 18:51:44 jmmv Exp $

--- src/filter.c.orig	2002-06-18 22:17:53.000000000 +0200
+++ src/filter.c
@@ -941,11 +941,11 @@ char *unindent_filter(char *indented)
 	       break;
 	  default:
 	       /* caught spaces before -- this is testing for \n etc */
-#if defined(HAVE_ISWSPACE)
+#if defined(HAVE_ISWSPACE) && defined(HAVE_BTOWC)
 	       if(!iswspace(btowc(c)))
 #else
                if(!isspace(c))
-#endif /* HAVE_ISWSPACE */
+#endif /* HAVE_ISWSPACE && HAVE_BTOWC */
 		    unindented[f++] = c;
 	       break;
 	  }