summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches/patch-hercifc.h
diff options
context:
space:
mode:
authorryoon <ryoon>2012-03-25 05:27:42 +0000
committerryoon <ryoon>2012-03-25 05:27:42 +0000
commit9ae0f4338cb4c03a05a9b92aad5841911caa2915 (patch)
treea60dd0805aa72e1b3b89aa48627f5e8078231542 /emulators/hercules/patches/patch-hercifc.h
parent66d6f6fd315bf30f63c9474e7c82f05b1094bb4f (diff)
downloadpkgsrc-9ae0f4338cb4c03a05a9b92aad5841911caa2915.tar.gz
Fix build on DragonFly 3.0.1
* Use autoconf on pre-configure stage, remove patch for configure * Modify autoconf macro (treat DragonFly as recent FreeBSD)
Diffstat (limited to 'emulators/hercules/patches/patch-hercifc.h')
-rw-r--r--emulators/hercules/patches/patch-hercifc.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/emulators/hercules/patches/patch-hercifc.h b/emulators/hercules/patches/patch-hercifc.h
index 06e88dcc82e..b52c248e76f 100644
--- a/emulators/hercules/patches/patch-hercifc.h
+++ b/emulators/hercules/patches/patch-hercifc.h
@@ -1,4 +1,4 @@
-$NetBSD: patch-hercifc.h,v 1.1 2011/05/01 23:28:59 ryoon Exp $
+$NetBSD: patch-hercifc.h,v 1.2 2012/03/25 05:27:43 ryoon Exp $
--- hercifc.h.orig 2009-02-09 07:55:14.000000000 +0000
+++ hercifc.h
@@ -6,7 +6,7 @@ $NetBSD: patch-hercifc.h,v 1.1 2011/05/01 23:28:59 ryoon Exp $
// --------------------------------------------------------------------
#define HERCIFC_CMD "hercifc" // Interface config command
-+#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+#define HERCTUN_DEV "/dev/tun" // Default TUN/TAP char dev
+#else
#define HERCTUN_DEV "/dev/net/tun" // Default TUN/TAP char dev
@@ -14,3 +14,12 @@ $NetBSD: patch-hercifc.h,v 1.1 2011/05/01 23:28:59 ryoon Exp $
typedef struct _CTLREQ
{
+@@ -101,7 +105,7 @@ typedef struct _CTLREQ
+ union
+ {
+ struct ifreq ifreq;
+-#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__SOLARIS__)
++#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__SOLARIS__) && !defined(__DragonFly__)
+ struct rtentry rtentry;
+ #endif
+ }