+++ /dev/null
---- gammu-1.09.19/gammu/smsd/smsdcore.h.orig 2007-02-06 17:36:07.000000000 +0100
-+++ gammu-1.09.19/gammu/smsd/smsdcore.h 2007-02-15 12:45:03.073571004 +0100
-@@ -13,11 +13,7 @@
- #endif
-
- #ifdef HAVE_POSTGRESQL_LIBPQ_FE_H
--#ifdef WIN32
--# include <libpq-fe.h>
--#else
--# include <postgresql/libpq-fe.h>
--#endif
-+# include <libpq-fe.h>
- #endif
-
- #include "../../common/service/sms/gsmsms.h"
---- gammu-1.10.3/cfg/autoconf/configure.in.orig 2007-04-16 15:49:28.000000000 +0200
-+++ gammu-1.10.3/cfg/autoconf/configure.in 2007-04-20 22:07:30.000000000 +0200
-@@ -115,7 +115,7 @@
- AC_ARG_ENABLE(pgsql,
- [ --disable-pgsql Disable postgreSQL support in SMSD],
- [pgsql="no"],
-- [AC_CHECK_HEADERS(postgresql/libpq-fe.h,
-+ [AC_CHECK_HEADERS(libpq-fe.h,
- [pgsql="yes"
- SMSD_LIBS="$SMSD_LIBS -L$(pg_config --libdir) -lpq"],
- [pgsql="no"])
+++ /dev/null
---- gammu-1.09.19/cfg/Makefile.cfg.orig 2007-02-15 12:24:48.253571004 +0100
-+++ gammu-1.09.19/cfg/Makefile.cfg 2007-02-15 12:25:41.713571004 +0100
-@@ -19,7 +19,7 @@
- CC = gcc
- CFLAGS = -g -O0 -fPIC -Wall -Wno-format-y2k
- GAMMU_CFLAGS = -pthread
--LDLIBS = -lm -lbluetooth
-+LDLIBS = -lmysqlclient -lz -lcrypt -lm -pthread -lbluetooth
- GAMMU_LIBS = -pthread
- SMSD_LIBS = -L/usr/lib/mysql -lmysqlclient -L/usr/lib -lpq
- INSTALL = /usr/bin/install