summaryrefslogtreecommitdiff
path: root/src/test/thread/thread_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/thread/thread_test.c')
-rw-r--r--src/test/thread/thread_test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/thread/thread_test.c b/src/test/thread/thread_test.c
index 381607324d3..31452317a6e 100644
--- a/src/test/thread/thread_test.c
+++ b/src/test/thread/thread_test.c
@@ -22,6 +22,9 @@
#if !defined(IN_CONFIGURE) && !defined(WIN32)
#include "postgres.h"
+
+/* we want to know what the native strerror does, not pg_strerror */
+#undef strerror
#endif
#include <stdio.h>
@@ -197,7 +200,7 @@ main(int argc, char *argv[])
/* report results */
#ifdef HAVE_STRERROR_R
- printf("Your system has sterror_r(); it does not need strerror().\n");
+ printf("Your system has strerror_r(); it does not need strerror().\n");
#else
printf("Your system uses strerror() which is ");
if (strerror_threadsafe)