summaryrefslogtreecommitdiff
path: root/tests/port/test_strerror_r.c
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-02-22 20:56:00 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-02-22 20:56:00 +0100
commit674109843a62212ff595f74c1f44d7ff74c859d6 (patch)
tree0f17e65f99d26d1f06aa26d175ba4af76194d1b1 /tests/port/test_strerror_r.c
parentd310129bc8df76249e7beca2d50b5511614dc917 (diff)
downloadwolfbones-674109843a62212ff595f74c1f44d7ff74c859d6.tar.gz
wolfbones-674109843a62212ff595f74c1f44d7ff74c859d6.tar.bz2
fixed porting tests, and fixed Solaris 8 port of string.h
Diffstat (limited to 'tests/port/test_strerror_r.c')
-rw-r--r--tests/port/test_strerror_r.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/port/test_strerror_r.c b/tests/port/test_strerror_r.c
index 05244cd..0ff53d6 100644
--- a/tests/port/test_strerror_r.c
+++ b/tests/port/test_strerror_r.c
@@ -1,8 +1,13 @@
#include "port/sys.h"
+#ifdef HAVE_STRERROR_R
+#define SAVE_HAVE_STRERROR_R
#undef HAVE_STRERROR_R
+#endif
#include "port/string.c" /* for strerror_r */
+#ifdef SAVE_HAVE_STRERROR_R
#undef strerror_r
+#endif
#include <stdlib.h> /* for exit, EXIT_SUCCESS, free */
#include <stdio.h> /* for printf */