Commit f7919edf by Clément Vasseur

Fix compilation on macOS

struct ip is available on Apple systems.
parent 58a5f0f0
......@@ -60,14 +60,12 @@ typedef union
* Raw udp packet structure with flexible-array payload
*****************************************************************************/
struct udprawpkt {
#if !defined(__APPLE__)
#if defined(__FreeBSD__)
#if defined(__APPLE__) || defined(__FreeBSD__)
struct ip iph;
#else
struct iphdr iph;
#endif
struct udphdr udph;
#endif
uint8_t payload[];
} __attribute__((packed));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment