diff options
author | David Zero <zero@cpp.edu> | 2016-12-02 04:37:23 -0800 |
---|---|---|
committer | David Zero <zero@cpp.edu> | 2017-01-04 13:44:39 -0800 |
commit | f3469070fe899e8e4fd88665386a55bad9f77cd8 (patch) | |
tree | c24743d266d3a8593792ef3e8661006cb283368a /testing/tox_shell.c | |
parent | 535b8238fd191710e1e8864f302fba5a02f52b1d (diff) |
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.
Diffstat (limited to 'testing/tox_shell.c')
-rw-r--r-- | testing/tox_shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/tox_shell.c b/testing/tox_shell.c index 18aad9c7..d5de3e67 100644 --- a/testing/tox_shell.c +++ b/testing/tox_shell.c | |||
@@ -26,6 +26,8 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #define _XOPEN_SOURCE 600 | ||
30 | |||
29 | #ifdef HAVE_CONFIG_H | 31 | #ifdef HAVE_CONFIG_H |
30 | #include "config.h" | 32 | #include "config.h" |
31 | #endif | 33 | #endif |