[SR-Dev] git:janakj/postgres: Changes to compile under debian.

Jan Janak jan at iptel.org
Sun Feb 15 18:55:25 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: 45ef7444a62254cf48b3c9754a3bf429a6a8a766
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=45ef7444a62254cf48b3c9754a3bf429a6a8a766

Author: Greg Fausak <lgfausak at august.net>
Committer: Greg Fausak <lgfausak at august.net>
Date:   Wed Jul 30 16:29:00 2003 +0000

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.

---

 modules/db_postgres/Makefile |    2 +-
 modules/db_postgres/db_mod.c |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/db_postgres/Makefile b/modules/db_postgres/Makefile
index 5dae7f9..ce55adf 100644
--- a/modules/db_postgres/Makefile
+++ b/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
 
diff --git a/modules/db_postgres/db_mod.c b/modules/db_postgres/db_mod.c
index 1240429..73f4def 100644
--- a/modules/db_postgres/db_mod.c
+++ b/modules/db_postgres/db_mod.c
@@ -37,6 +37,7 @@
 #include "../../sr_module.h"
 #include "dbase.h"
 
+MODULE_VERSION
 
 static int mod_init(void);
 




More information about the sr-dev mailing list