From f3469070fe899e8e4fd88665386a55bad9f77cd8 Mon Sep 17 00:00:00 2001 From: David Zero Date: Fri, 2 Dec 2016 04:37:23 -0800 Subject: Portability fixes - CFLAG gnu99 was changed to c99. - CXXFLAG c++98 was changed to c++11. - CFLAG -pedantic-errors was added so that non-ISO C now throws errors. - _XOPEN_SOURCE feature test macro added and set to 600 to expose SUSv3 and c99 definitions in modules that required them. - Fixed tests (and bootstrap daemon logging) that were failing due to the altered build flags. - Avoid string suffix misinterpretation; explicit narrowing conversion. - Misc. additions to .gitignore to make sure build artifacts don't wind up in version control. --- auto_tests/tox_many_tcp_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'auto_tests/tox_many_tcp_test.c') diff --git a/auto_tests/tox_many_tcp_test.c b/auto_tests/tox_many_tcp_test.c index 197c6e47..48f5671c 100644 --- a/auto_tests/tox_many_tcp_test.c +++ b/auto_tests/tox_many_tcp_test.c @@ -1,6 +1,8 @@ /* Auto Tests: Many TCP. */ +#define _XOPEN_SOURCE 600 + #ifdef HAVE_CONFIG_H #include "config.h" #endif -- cgit v1.2.3