diff options
author | sudden6 <sudden6@gmx.at> | 2019-05-01 14:24:46 +0200 |
---|---|---|
committer | sudden6 <sudden6@gmx.at> | 2019-05-01 14:24:46 +0200 |
commit | b3100c977c58437b680d8c39aaa8f167aeecaa59 (patch) | |
tree | 9b5ec7e77ff3423c535e01c3899dd967a46c9807 /auto_tests | |
parent | efff822aef40ecb93487cbd1cf672877531c11c6 (diff) |
add undef guard in tox_many_tcp_test
This fixes an redefinition error when creating amalgamation.cc during
static analysis
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/tox_many_tcp_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
39 | 39 | ||
40 | #define NUM_FRIENDS 50 | 40 | #define NUM_FRIENDS 50 |
41 | #define NUM_TOXES_TCP 40 | 41 | #define NUM_TOXES_TCP 40 |
42 | |||
43 | #ifdef TCP_RELAY_PORT | ||
44 | #undef TCP_RELAY_PORT | ||
45 | #endif | ||
42 | #define TCP_RELAY_PORT 33448 | 46 | #define TCP_RELAY_PORT 33448 |
43 | 47 | ||
44 | START_TEST(test_many_clients_tcp) | 48 | START_TEST(test_many_clients_tcp) |