snprintf.c on win32 does not compile.. - Mailing list pgsql-patches

From Magnus Hagander
Subject snprintf.c on win32 does not compile..
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE4769DD@algol.sollentuna.se
Whole thread Raw
Responses Re: snprintf.c on win32 does not compile..  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: snprintf.c on win32 does not compile..  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
.... there is no sys/ioctl.h. Trivial patch below:

diff -c -r1.6 snprintf.c
*** snprintf.c  22 Feb 2005 04:57:24 -0000      1.6
--- snprintf.c  27 Feb 2005 17:05:54 -0000
***************
*** 40,46 ****
--- 40,48 ----
  Your platform must have a thread-safe snprintf() to compile with
threads.
  #endif

+ #ifndef WIN32
  #include <sys/ioctl.h>
+ #endif
  #include <sys/param.h>

pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: win32 libpq build broken
Next
From: Bruce Momjian
Date:
Subject: Re: win32 libpq build broken