snprintf.c on win32 does not compile..

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "PostgreSQL-patches" <pgsql-patches(at)postgresql(dot)org>
Subject: snprintf.c on win32 does not compile..
Date: 2005-02-27 17:07:08
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE4769DD@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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>

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Magnus Hagander 2005-02-27 17:37:24 win32 libpq build broken
Previous Message Bruce Momjian 2005-02-27 15:22:40 Re: Casting INT4 to BOOL...