diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-16 22:46:02 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-21 20:44:26 +0000 |
commit | 7245ac11ef9be2420c8356c12acc79f93ea211bb (patch) | |
tree | e971c5c6e10c2310afe4b2cd80212feac9839f2a /auto_tests/overflow_recvq_test.c | |
parent | 7c2b95ef5e4ccdae01bd104aa7400294c9ea391b (diff) |
Avoid implementations in .h files or #including .c files.
Also, avoid the need for putting `_XOPEN_SOURCE` in every test file.
Diffstat (limited to 'auto_tests/overflow_recvq_test.c')
-rw-r--r-- | auto_tests/overflow_recvq_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auto_tests/overflow_recvq_test.c b/auto_tests/overflow_recvq_test.c index cdad2442..55f9e459 100644 --- a/auto_tests/overflow_recvq_test.c +++ b/auto_tests/overflow_recvq_test.c | |||
@@ -1,8 +1,8 @@ | |||
1 | /* Try to overflow the net_crypto packet buffer. | 1 | /* Try to overflow the net_crypto packet buffer. |
2 | */ | 2 | */ |
3 | 3 | ||
4 | #ifndef _XOPEN_SOURCE | 4 | #ifdef HAVE_CONFIG_H |
5 | #define _XOPEN_SOURCE 600 | 5 | #include "config.h" |
6 | #endif | 6 | #endif |
7 | 7 | ||
8 | #include <stdint.h> | 8 | #include <stdint.h> |