Skip to content

Commit 949ab3c

Browse files
committed
snprintf.c has no sys/ioctl.h. Trivial patch below:
Magnus Hagander
1 parent 484f046 commit 949ab3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/port/snprintf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
Your platform must have a thread-safe snprintf() to compile with threads.
4141
#endif
4242

43+
#ifndef WIN32
4344
#include <sys/ioctl.h>
45+
#endif
4446
#include <sys/param.h>
4547

4648

@@ -83,7 +85,7 @@ typedef unsigned long ulong_long;
8385
* causing nast effects.
8486
**************************************************************/
8587

86-
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.6 2005/02/22 04:57:24 momjian Exp $";*/
88+
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.7 2005/02/28 14:16:16 momjian Exp $";*/
8789
static char *end;
8890
static int SnprfOverflow;
8991

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy