From: | Larry Rosenman <ler(at)lerctr(dot)org> |
---|---|
To: | php-dev(at)lists(dot)php(dot)net |
Cc: | PostgreSQL Hackers List <pgsql-hackers(at)postgresql(dot)org> |
Subject: | PHP needs to only include <postgres_fe.h> now... |
Date: | 2001-02-18 21:21:46 |
Message-ID: | 20010218152146.A9582@lerami.lerctr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Starting with PostgreSQL 7.1beta5 (or current CVS), PHP's pgsql
extension needs to only include <postgres_fe.h> to compile.
Here is a patch:
Index: php_pgsql.h
===================================================================
RCS file: /cvsroot/php/ext/pgsql/php_pgsql.h,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 php_pgsql.h
*** php_pgsql.h 2000/12/23 23:05:41 1.1.1.2
--- php_pgsql.h 2001/02/18 21:15:45
***************
*** 29,35 ****
#ifdef PHP_PGSQL_PRIVATE
#undef SOCKET_SIZE_TYPE
! #include <postgres.h>
#include <libpq-fe.h>
#ifdef PHP_WIN32
--- 29,35 ----
#ifdef PHP_PGSQL_PRIVATE
#undef SOCKET_SIZE_TYPE
! #include <postgres_fe.h>
#include <libpq-fe.h>
#ifdef PHP_WIN32
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-02-18 22:54:23 | Re: (forw) (forw) Re: PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS |
Previous Message | Larry Rosenman | 2001-02-18 21:19:17 | (forw) (forw) Re: PHP 4.0.4pl1 BUILD: BUSTED WITH CURRENT CVS |