In gencode.c do not check whether offsetof() is defined: <stddef.h>
defines it since at least C99, so just make sure to have the header
included. Also include the header in pcap-util.c.
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
+#include <stddef.h>
#include "pcap-int.h"
#include <linux/filter.h>
#endif
-#ifndef offsetof
-#define offsetof(s, e) ((size_t)&((s *)0)->e)
-#endif
-
#ifdef _WIN32
#ifdef INET6
#if defined(__MINGW32__) && defined(DEFINE_ADDITIONAL_IPV6_STUFF)
#include <config.h>
+#include <stddef.h>
+
#include <pcap-types.h>
#include "pcap/can_socketcan.h"