Re: libpq.dll on win32 - Mailing list pgsql-patches

From Tom Lane
Subject Re: libpq.dll on win32
Date
Msg-id 26050.1097541466@sss.pgh.pa.us
Whole thread Raw
In response to libpq.dll on win32  ("Magnus Hagander" <mha@sollentuna.net>)
Responses Re: libpq.dll on win32
List pgsql-patches
"Magnus Hagander" <mha@sollentuna.net> writes:

*** src/interfaces/libpq/fe-secure.c    28 Sep 2004 00:06:02 -0000    1.54
--- src/interfaces/libpq/fe-secure.c    11 Oct 2004 19:50:22 -0000
***************
*** 1201,1206 ****
--- 1201,1212 ----
          return NULL;
      return conn->ssl;
  }
+ #else
+ void *
+ PQgetssl(PGconn *conn)
+ {
+     return NULL;
+ }
  #endif   /* USE_SSL */


This seems like a good idea, but that particular approach to it will
draw an unprototyped-global-function warning on every non-SSL-enabled
compile ... please clean it up.

Also, I count 3 *.def files to be fixed, not two.  (We really oughta
figure a way to generate them all from a single list file... can we
rely on sed(1) being available in all Windows build environments?)

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Casting INT4 to BOOL...
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Static build of libpq fails