summaryrefslogtreecommitdiff
path: root/databases/gq/patches/patch-ac
blob: 23a7bb0d690b176df11e307f4b10c010583cd10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ac,v 1.2 2008/01/10 21:42:51 adam Exp $

--- src/filter.c.orig	2007-05-14 18:26:50.000000000 +0200
+++ src/filter.c
@@ -1036,11 +1036,11 @@ static char *unindent_filter(char *inden
 	       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;
 	  }