summaryrefslogtreecommitdiff
path: root/mail/dovecot/patches/patch-ad
blob: 91b4bf8d10aebeef33c10f5a2ac7574ba59b30d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ad,v 1.3 2006/02/12 02:47:32 grant Exp $

--- src/lib-sql/Makefile.in.orig	2006-02-08 21:13:53.000000000 +1100
+++ src/lib-sql/Makefile.in
@@ -470,12 +470,16 @@ sql-drivers-register.c: Makefile
 	echo '/* this file automatically generated by Makefile */' >$@
 	echo '#include "lib.h"' >>$@
 	echo '#include "sql-api.h"' >>$@
-	for i in $(sql_drivers) ; do \
+	for i in $(sql_drivers) null; do \
+	  if [ "$${i}" != "null" ]; then \
 		echo "extern struct sql_db driver_$${i}_db;" >>$@ ; \
+	  fi \
 	done
 	echo 'void sql_drivers_register_all(void) {' >>$@
-	for i in $(sql_drivers) ; do \
+	for i in $(sql_drivers) null; do \
+	  if [ "$${i}" != "null" ]; then \
 		echo "sql_driver_register(&driver_$${i}_db);" >>$@ ; \
+	  fi \
 	done
 	echo '}' >>$@