1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

snprintf.c has no sys/ioctl.h. Trivial patch below:

Magnus Hagander
This commit is contained in:
Bruce Momjian
2005-02-28 14:16:16 +00:00
parent 484f0464ff
commit 949ab3c9b3

View File

@ -40,7 +40,9 @@
Your platform must have a thread-safe snprintf() to compile with threads. Your platform must have a thread-safe snprintf() to compile with threads.
#endif #endif
#ifndef WIN32
#include <sys/ioctl.h> #include <sys/ioctl.h>
#endif
#include <sys/param.h> #include <sys/param.h>
@ -83,7 +85,7 @@ typedef unsigned long ulong_long;
* causing nast effects. * 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 char *end;
static int SnprfOverflow; static int SnprfOverflow;