summaryrefslogtreecommitdiff
path: root/net/hping/patches/patch-ae
blob: 00e0f32b6cb8278c1a90b91405de772463a8f2f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-ae,v 1.2 2006/03/30 13:51:29 salo Exp $

--- getifname.c.orig	2004-05-03 10:55:53.000000000 +0200
+++ getifname.c	2006-03-22 19:56:40.000000000 +0100
@@ -17,7 +17,7 @@
 #include <unistd.h>		/* close */
 
 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || \
-    defined(__bsdi__) || defined(__APPLE__)
+    defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
 #include <stdlib.h>
 #include <ifaddrs.h>
 #include <net/route.h>
@@ -28,7 +28,7 @@
 
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && \
     !defined(__linux__) && !defined(__sun__) && !defined(__bsdi__) && \
-    !defined(__APPLE__)
+    !defined(__APPLE__) && !defined(__DragonFly__)
 #error Sorry, interface code not implemented.
 #endif
 
@@ -175,7 +175,7 @@
 }
 
 #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
-      defined(__bsdi__) || defined(__APPLE__)
+      defined(__bsdi__) || defined(__APPLE__) || defined(__DragonFly__)
 
 /* return interface informations :
    - from the specified (-I) interface