aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-02-28 14:16:16 +0000
committerBruce Momjian <bruce@momjian.us>2005-02-28 14:16:16 +0000
commit949ab3c9b3d34f8aece16610e0eb1826bfc02312 (patch)
tree6f6df45475574987b18ea6d2ae48d040d1a93db5
parent484f0464ff4aa5a5fccc1d4e3c0d3518a8f01068 (diff)
downloadpostgresql-949ab3c9b3d34f8aece16610e0eb1826bfc02312.tar.gz
postgresql-949ab3c9b3d34f8aece16610e0eb1826bfc02312.zip
snprintf.c has no sys/ioctl.h. Trivial patch below:
Magnus Hagander
-rw-r--r--src/port/snprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c
index eb75482f16c..854bb624d4b 100644
--- a/src/port/snprintf.c
+++ b/src/port/snprintf.c
@@ -40,7 +40,9 @@
Your platform must have a thread-safe snprintf() to compile with threads.
#endif
+#ifndef WIN32
#include <sys/ioctl.h>
+#endif
#include <sys/param.h>
@@ -83,7 +85,7 @@ typedef unsigned long ulong_long;
* causing nast effects.
**************************************************************/
-/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.6 2005/02/22 04:57:24 momjian Exp $";*/
+/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.7 2005/02/28 14:16:16 momjian Exp $";*/
static char *end;
static int SnprfOverflow;