aboutsummaryrefslogtreecommitdiff
path: root/tests/server/util.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-09-13 13:41:53 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-09-13 13:41:53 +0000
commit56bf97ffc9b6e61d3ebf3b5e5a0dfff030b4125e (patch)
tree928644d56379186188ea54567628c4db3351bedc /tests/server/util.h
parent7d3e719a2ccdaeb79a62aaf2243f93c9855008ef (diff)
'in6addr_any' must be placed in .c-file. Added 'REAL_WIN32' for
all Win32 targets except CygWin. Cleanup.
Diffstat (limited to 'tests/server/util.h')
-rw-r--r--tests/server/util.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/server/util.h b/tests/server/util.h
index de33462cf..30395fc4c 100644
--- a/tests/server/util.h
+++ b/tests/server/util.h
@@ -40,6 +40,8 @@ extern const char *path;
#if defined(WIN32) && !defined(__CYGWIN__)
#include <process.h>
+#include <fcntl.h>
+#define REAL_WIN32
#define sleep(sec) Sleep ((sec)*1000)
@@ -49,20 +51,15 @@ extern const char *path;
#define ENOTSOCK WSAENOTSOCK
#define ECONNREFUSED WSAECONNREFUSED
-#if defined(ENABLE_IPV6) && defined(__MINGW32__)
-const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
-#endif
-#endif
-
-#endif
-
-#if defined(WIN32) && !defined(__CYGWIN__)
#undef perror
#define perror(m) win32_perror(m)
-#endif
+void win32_perror (const char *msg);
void win32_init(void);
void win32_cleanup(void);
+#endif /* WIN32 && !__CYGWIN__ */
/* returns the path name to the test case file */
char *test2file(long testno);
+
+#endif /* __SERVER_UTIL_H */