From b979772874a873fc04bcf682fb381cd63fa31685 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 17 Oct 1998 04:54:58 +0200
Subject: [PATCH] Now checks for existance of Postgres.postgres.

Rev: lib/modules/Sql.pmod/postgres.pike:1.5
---
 lib/modules/Sql.pmod/postgres.pike | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/modules/Sql.pmod/postgres.pike b/lib/modules/Sql.pmod/postgres.pike
index 3f240538f1..fa8ddd8e22 100644
--- a/lib/modules/Sql.pmod/postgres.pike
+++ b/lib/modules/Sql.pmod/postgres.pike
@@ -2,10 +2,12 @@
  * This is part of the Postgres module for Pike.
  * (C) 1997 Francesco Chemolli <kinkie@kame.usr.dsi.unimi.it>
  *
- * $Id: postgres.pike,v 1.4 1998/08/25 13:11:21 grubba Exp $
+ * $Id: postgres.pike,v 1.5 1998/10/17 02:54:58 grubba Exp $
  *
  */
 
+#if constant(Postgres.postgres)
+
 #define ERROR(X) throw (({X,backtrace()}))
 
 inherit Postgres.postgres: mo;
@@ -122,3 +124,9 @@ mapping(string:array(mixed)) list_fields (string table, void|string wild) {
 	}
 	return ret;
 }
+#else /* !constant(Postgres.postgres) */
+void create()
+{
+  destruct();
+}
+#endif /* constant(Postgres.postgres) */
-- 
GitLab