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
^
* FOR A PARTICULAR PURPOSE.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdlib.h>
#include "netdissect-alloc.h"