summaryrefslogtreecommitdiff
path: root/net/multicat/files/patch-util.h
blob: d54b9af6b63f027e51973c7bae5f48284ff6e520 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- util.h.orig	2016-10-07 14:32:44 UTC
+++ util.h
@@ -24,7 +24,7 @@
 #include <netinet/udp.h>
 #include <netinet/ip.h>
 
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)
 #define POLLRDHUP 0
 /* uClibc may does not have clock_nanosleep() */
 #elif !defined (__UCLIBC__) || \
@@ -59,7 +59,7 @@ typedef union
  *****************************************************************************/
 struct udprawpkt {
 #if !defined(__APPLE__)
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
     struct  ip iph;
 #else
     struct  iphdr iph;