$NetBSD: patch-ap,v 1.1 2005/03/16 12:48:49 rillig Exp $

gcc-2.95.3 does not like code intermixed with declarations.

--- lib/qof/qofquery.c.orig	Sun May 23 22:57:30 2004
+++ lib/qof/qofquery.c	Wed Mar 16 09:28:08 2005
@@ -1216,13 +1216,14 @@ void qof_query_add_guid_match (QofQuery 
 
 void qof_query_set_book (QofQuery *q, QofBook *book)
 {
+  GSList *slist;
   if (!q || !book) return;
 
   /* Make sure this book is only in the list once */
   if (g_list_index (q->books, book) == -1)
     q->books = g_list_prepend (q->books, book);
 
-  GSList *slist = NULL;
+  slist = NULL;
   g_slist_prepend (slist, QOF_PARAM_GUID);
   g_slist_prepend (slist, QOF_PARAM_BOOK);
   qof_query_add_guid_match (q, slist,
