diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-20 15:20:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-03-20 15:20:51 -0700 |
commit | 9e96bd4cf18a1e56867ac43b4da927939ceb7680 (patch) | |
tree | b617c71baf7c565d02aff1983e7a8042ce62a87e /sockutils.c | |
parent | b26a3719eb69f398f9af476bcf2291be7320543e (diff) |
Define more feature test macros and do so in a separate header file.
On Linux, define _GNU_SOURCE to get as much stuff declared as possible.
Define the feature test macros in ftmacros.h, and include that befoe
including any header files other than config.h.
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sockutils.c b/sockutils.c index b6a7299c..33e2cc6c 100644 --- a/sockutils.c +++ b/sockutils.c @@ -50,6 +50,9 @@ * ways. */ +#include "ftmacros.h" + +#include <string.h> #include <errno.h> /* for the errno variable */ #include <stdio.h> /* for the stderr file */ #include <stdlib.h> /* for malloc() and free() */ @@ -59,7 +62,7 @@ #define INT_MAX 2147483647 #endif -#include "portability.h" /* this includes <string.h> */ +#include "portability.h" #include "sockutils.h" #ifdef _WIN32 |