summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-02 05:27:35 +0000
committerSascha Schumann <sas@php.net>2000-05-02 05:27:35 +0000
commita931caf2b274911e6b21084690804bae15c57a53 (patch)
treee0da603d631d134e7795b965bd58e0883ea903f3
parentf6a7542f73e39de7dd182dee61273f358084488d (diff)
downloadphp-git-a931caf2b274911e6b21084690804bae15c57a53.tar.gz
Protect everything which requires <libpq-fe.h> with PHP_PGSQL_PRIVATE
-rw-r--r--ext/pgsql/pgsql.c2
-rw-r--r--ext/pgsql/php_pgsql.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index cdad76e80e..8703edaba9 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -25,6 +25,8 @@
#include "dl/phpdl.h"
#endif
+#define PHP_PGSQL_PRIVATE 1
+
#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_standard.h"
diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h
index 0486801fe5..f0ec320aed 100644
--- a/ext/pgsql/php_pgsql.h
+++ b/ext/pgsql/php_pgsql.h
@@ -42,6 +42,7 @@
extern zend_module_entry pgsql_module_entry;
#define pgsql_module_ptr &pgsql_module_entry
+#ifdef PHP_PGSQL_PRIVATE
#include <libpq-fe.h>
@@ -138,6 +139,7 @@ typedef struct {
# define PGLS_FETCH()
extern PHP_PGSQL_API php_pgsql_globals pgsql_globals;
#endif
+#endif
#else