diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-06-05 14:19:33 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-06-05 14:38:15 +0200 |
commit | 94d2bf7fcc3721b6eae23613ead037ef47e37fcb (patch) | |
tree | 1ad17dfb1c46a3cd9c4a35603882ee91a477c221 /netdissect-alloc.c | |
parent | 25621613e3a2b7453a066fdf35d46edf88522e44 (diff) | |
download | tcpdump-94d2bf7fcc3721b6eae23613ead037ef47e37fcb.tar.gz |
Include conditionally <config.h> in netdissect-alloc.c
This should suppress the warning reported by Gisle Vanem:
In file included from netdissect-alloc.c:18:
In file included from ./netdissect-alloc.h:22:
./netdissect.h(131,14): warning: '_strdup' redeclared without 'dllimport'
attribute: previous 'dllimport' ignored [-Winconsistent-dllimport]
extern char *strdup (const char *str);
^
./netdissect-stdinc.h(219,18): note: expanded from macro 'strdup'
#define strdup _strdup
^
Diffstat (limited to 'netdissect-alloc.c')
-rw-r--r-- | netdissect-alloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/netdissect-alloc.c b/netdissect-alloc.c index 1a40b09c..bbae56ee 100644 --- a/netdissect-alloc.c +++ b/netdissect-alloc.c @@ -14,6 +14,10 @@ * FOR A PARTICULAR PURPOSE. */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include <stdlib.h> #include "netdissect-alloc.h" |