$NetBSD$

--- src/gq.c.orig	2008-01-10 22:31:56.000000000 +0100
+++ src/gq.c
@@ -32,6 +32,10 @@
 # include  <config.h>
 #endif /* HAVE_CONFIG_H */
 
+#ifdef HAVE_LOCALE_H
+# include  <locale.h>
+#endif /* HAVE_LOCALE_H */
+
 #ifdef DEBUG
 #  include "debug.h"
 #  ifdef HAVE_MCHECK
