提交 8e2d5f69 编写于 作者: M Michael Casadevall

Fixed sql-qptvc.cpp to work on modern postgresql versions,

and made the makefile be less braindead
Signed-off-by: NMichael Casadevall <sonicmctails@gmail.com>
上级 a8ceaade
2008-12-30 Michael Casadevall <sonicmctails@gmail.com>
* src/sql-aptvc.cpp - Fixed to work on modern postgresql version
* src/Makefile - Gave it a brain on finding postgres headers
2008-12-30 Joerg Jaspert <joerg@debian.org>
* config/debian/cron.hourly: Generate the 822 format for accepted,
......
#!/usr/bin/make -f
CXXFLAGS = -I/usr/include/postgresql/ -I/usr/include/postgresql/server/ -fPIC -Wall
CFLAGS = -fPIC -Wall
LDFLAGS = -fPIC
LIBS = -lapt-pkg
CXXFLAGS = -I/usr/include/postgresql/ -I`pg_config --includedir-server` -fPIC -Wall
CFLAGS = -fFIC -Wall `pg_config --cflags`
LDFLAGS = `pg_config --ldflags`
LIBS = -lapt-pkg `pg_config --libs`
C++ = g++
......
......@@ -26,6 +26,11 @@ extern "C"
{
#include <postgres.h>
#include <fmgr.h>
#ifdef PG_MODULE_MAGIC
PG_MODULE_MAGIC;
#endif
int versioncmp(text *A, text *B);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册