mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 17:21:17 +02:00
Throw compile error if our non-thread-safe snprintf is used.
This commit is contained in:
parent
8c3f859ecf
commit
49c534fccb
@ -35,6 +35,11 @@
|
|||||||
/* might be in either frontend or backend */
|
/* might be in either frontend or backend */
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
|
#ifdef ENABLE_THREAD_SAFETY
|
||||||
|
#error The replacement snprintf() is not thread-safe. \
|
||||||
|
Your platform must have a thread-safe snprintf() to compile with threads.
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
|
||||||
@ -74,7 +79,7 @@ typedef unsigned long ulong_long;
|
|||||||
* causing nast effects.
|
* causing nast effects.
|
||||||
**************************************************************/
|
**************************************************************/
|
||||||
|
|
||||||
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.2 2003/11/29 22:41:31 pgsql Exp $";*/
|
/*static char _id[] = "$PostgreSQL: pgsql/src/port/snprintf.c,v 1.3 2004/01/08 17:15:54 momjian Exp $";*/
|
||||||
static char *end;
|
static char *end;
|
||||||
static int SnprfOverflow;
|
static int SnprfOverflow;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user