Index: src/port/snprintf.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/port/snprintf.c,v
retrieving revision 1.2
diff -c -c -r1.2 snprintf.c
*** src/port/snprintf.c	29 Nov 2003 22:41:31 -0000	1.2
--- src/port/snprintf.c	8 Jan 2004 17:12:47 -0000
***************
*** 35,40 ****
--- 35,45 ----
  /* might be in either frontend or backend */
  #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/param.h>
  
