Skip to content
Permalink
Browse files

fix postgres <8.3 support

git-svn-id: http://svn.osgeo.org/qgis/trunk@9943 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jan 8, 2009
1 parent bdf82cb commit 93fc3c9eb69565f2abde09978627198ff9de2192
Showing with 13 additions and 0 deletions.
  1. +7 −0 cmake/FindPostgres.cmake
  2. +4 −0 src/app/CMakeLists.txt
  3. +2 −0 src/app/qgsdbsourceselect.cpp
@@ -61,6 +61,13 @@ ENDIF(WIN32)

IF (POSTGRES_INCLUDE_DIR AND POSTGRES_LIBRARY)
SET(POSTGRES_FOUND TRUE)

IF(EXISTS "${POSTGRES_INCLUDE_DIR}/pg_config.h")
SET(HAVE_PGCONFIG TRUE)
ELSE(EXISTS "${POSTGRES_INCLUDE_DIR}/pg_config.h")
SET(HAVE_PGCONFIG FALSE)
ENDIF(EXISTS "${POSTGRES_INCLUDE_DIR}/pg_config.h")

ENDIF (POSTGRES_INCLUDE_DIR AND POSTGRES_LIBRARY)


@@ -140,6 +140,10 @@ SET (QGIS_APP_MOC_HDRS
)

IF (POSTGRES_FOUND)
IF(HAVE_PGCONFIG)
ADD_DEFINITIONS(-DHAVE_PGCONFIG=1)
ENDIF(HAVE_PGCONFIG)

SET (QGIS_APP_SRCS ${QGIS_APP_SRCS}
qgsdbsourceselect.cpp
qgsnewconnection.cpp
@@ -38,7 +38,9 @@ email : sherman at mrcc.com
#include <cassert>
#include <iostream>

#ifdef HAVE_PGCONFIG
#include <pg_config.h>
#endif

QgsDbSourceSelect::QgsDbSourceSelect( QWidget *parent, Qt::WFlags fl )
: QDialog( parent, fl ), mColumnTypeThread( NULL ), pd( 0 )

0 comments on commit 93fc3c9

Please sign in to comment.
You can’t perform that action at this time.