From b3100c977c58437b680d8c39aaa8f167aeecaa59 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Wed, 1 May 2019 14:24:46 +0200 Subject: add undef guard in tox_many_tcp_test This fixes an redefinition error when creating amalgamation.cc during static analysis --- auto_tests/tox_many_tcp_test.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'auto_tests') diff --git a/auto_tests/tox_many_tcp_test.c b/auto_tests/tox_many_tcp_test.c index a3be23fd..c1bf522b 100644 --- a/auto_tests/tox_many_tcp_test.c +++ b/auto_tests/tox_many_tcp_test.c @@ -39,6 +39,10 @@ static void accept_friend_request(Tox *m, const uint8_t *public_key, const uint8 #define NUM_FRIENDS 50 #define NUM_TOXES_TCP 40 + +#ifdef TCP_RELAY_PORT +#undef TCP_RELAY_PORT +#endif #define TCP_RELAY_PORT 33448 START_TEST(test_many_clients_tcp) -- cgit v1.2.3