Browse Source

Changes to compile under debian.
Also, MODULE_VERSION now creates an error condition instead of
a warning, so it is needed for the postgres version of the code
to run.
These changes came from Alex Mayrhofer, checked in by me.

Greg Fausak 22 years ago
parent
commit
45ef7444a6
2 changed files with 2 additions and 1 deletions
  1. 1 1
      modules/db_postgres/Makefile
  2. 1 0
      modules/db_postgres/db_mod.c

+ 1 - 1
modules/db_postgres/Makefile

@@ -7,7 +7,7 @@ auto_gen=
 NAME=postgres.so
 
 # libpq-fe.h locations
-DEFS +=-I/usr/local/pgsql/include
+DEFS +=-I/usr/local/pgsql/include -I/usr/include/postgresql
 LIBS=-L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql -L/usr/pkg/lib \
 		-L/usr/pkg/lib/pgsql -lpq
 

+ 1 - 0
modules/db_postgres/db_mod.c

@@ -37,6 +37,7 @@
 #include "../../sr_module.h"
 #include "dbase.h"
 
+MODULE_VERSION
 
 static int mod_init(void);