From 2347a7641380272c3f28a1fef0ffd345fbc56a56 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 16 Jan 2021 17:34:55 +0000 Subject: [PATCH] Problem: build broken on debian/hurd Solution: fix it --- Makefile.am | 1 - tests/testutil.cpp | 4 ++++ tests/testutil_unity.cpp | 2 +- tests/testutil_unity.hpp | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3b1ae7a1..45b07504 100755 --- a/Makefile.am +++ b/Makefile.am @@ -1401,7 +1401,6 @@ if ON_GNU XFAIL_TESTS += tests/test_ipc_wildcard \ tests/test_reqrep_ipc \ tests/test_pair_ipc \ - tests/test_rebind_ipc \ tests/test_term_endpoint endif diff --git a/tests/testutil.cpp b/tests/testutil.cpp index 5a8b3ff2..a8349a49 100644 --- a/tests/testutil.cpp +++ b/tests/testutil.cpp @@ -67,6 +67,10 @@ #endif #endif +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + const char *SEQ_END = (const char *) 1; const char bounce_content[] = "12345678ABCDEFGH12345678abcdefgh"; diff --git a/tests/testutil_unity.cpp b/tests/testutil_unity.cpp index 1c273058..79fda926 100644 --- a/tests/testutil_unity.cpp +++ b/tests/testutil_unity.cpp @@ -298,7 +298,7 @@ void bind_loopback_tipc (void *socket_, char *my_endpoint_, size_t len_) test_bind (socket_, "tipc://<*>", my_endpoint_, len_); } -#if defined(ZMQ_HAVE_IPC) && !defined(ZMQ_HAVE_GNU) +#if defined(ZMQ_HAVE_IPC) void make_random_ipc_endpoint (char *out_endpoint_) { #ifdef ZMQ_HAVE_WINDOWS diff --git a/tests/testutil_unity.hpp b/tests/testutil_unity.hpp index 0be46db2..b00c0c89 100644 --- a/tests/testutil_unity.hpp +++ b/tests/testutil_unity.hpp @@ -272,7 +272,7 @@ void bind_loopback_ipc (void *socket_, char *my_endpoint_, size_t len_); // Binds to an ipc endpoint using the tipc wildcard address. void bind_loopback_tipc (void *socket_, char *my_endpoint_, size_t len_); -#if defined(ZMQ_HAVE_IPC) && !defined(ZMQ_HAVE_GNU) +#if defined(ZMQ_HAVE_IPC) // 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 // TODO also add a len parameter here