From db8c26fce32a2628959a257479e05b48cde9064b Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 7 Feb 2019 11:01:14 +0100 Subject: [PATCH] Problem: testutil_unity uses undefined names on Windows Solution: make compilation conditional --- tests/testutil_unity.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testutil_unity.hpp b/tests/testutil_unity.hpp index aad1c7c6..f6eda652 100644 --- a/tests/testutil_unity.hpp +++ b/tests/testutil_unity.hpp @@ -347,6 +347,7 @@ void bind_loopback_tipc (void *socket_, char *my_endpoint_, size_t len_) test_bind (socket_, "tipc://<*>", my_endpoint_, len_); } +#if !defined(ZMQ_HAVE_WINDOWS) && !defined(ZMQ_HAVE_GNU) // utility function to create a random IPC endpoint, similar to what a ipc://* // wildcard binding does, but in a way it can be reused for multiple binds void make_random_ipc_endpoint (char *out_endpoint_) @@ -366,3 +367,4 @@ void make_random_ipc_endpoint (char *out_endpoint_) strcpy (out_endpoint_, "ipc://"); strcat (out_endpoint_, random_file); } +#endif