summaryrefslogtreecommitdiff
path: root/misc/vfu/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-11 17:02:39 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-11 17:02:39 +0000
commit4f8339ea29d5841ff73714e07b8ce61e669f6ecb (patch)
treeea0f0b31d40000309e6c6f8319b0f16d872603d0 /misc/vfu/patches
parentd7784743b1852c8529742099eb8fece74b0a9657 (diff)
downloadpkgsrc-4f8339ea29d5841ff73714e07b8ce61e669f6ecb.tar.gz
Add DragonFly support.
Diffstat (limited to 'misc/vfu/patches')
-rw-r--r--misc/vfu/patches/patch-ai28
-rw-r--r--misc/vfu/patches/patch-aj13
2 files changed, 41 insertions, 0 deletions
diff --git a/misc/vfu/patches/patch-ai b/misc/vfu/patches/patch-ai
new file mode 100644
index 00000000000..816c07d6b16
--- /dev/null
+++ b/misc/vfu/patches/patch-ai
@@ -0,0 +1,28 @@
+$NetBSD: patch-ai,v 1.1 2006/01/11 17:02:39 joerg Exp $
+
+--- vslib/target.h.orig 2006-01-11 16:51:18.000000000 +0000
++++ vslib/target.h
+@@ -41,6 +41,14 @@
+ #endif
+
+ #ifdef _TARGET_UNKNOWN_
++ #if defined(__DragonFly__)
++ #define _TARGET_DRAGONFLY_
++ #define _TARGET_DESCRIPTION_ "UNIX/DRAGONFLY"
++ #undef _TARGET_UNKNOWN_
++ #endif
++#endif
++
++#ifdef _TARGET_UNKNOWN_
+ #if defined(WIN32)
+ #define _TARGET_WIN32_
+ #define _TARGET_DESCRIPTION_ "DOS/WIN32" // sorry :)
+@@ -61,7 +69,7 @@
+
+ /****************************************** define target UNIX platforms ***/
+
+-#if defined(_TARGET_LINUX_) || defined(_TARGET_NETBSD_)
++#if defined(_TARGET_LINUX_) || defined(_TARGET_NETBSD_) || defined(_TARGET_DRAGONFLY_)
+ #define _TARGET_UNIX_
+ #undef _TARGET_UNKNOWN_
+ #endif
diff --git a/misc/vfu/patches/patch-aj b/misc/vfu/patches/patch-aj
new file mode 100644
index 00000000000..9343f2ac3bd
--- /dev/null
+++ b/misc/vfu/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2006/01/11 17:02:39 joerg Exp $
+
+--- vfu/vfu.h.orig 2006-01-11 16:54:42.000000000 +0000
++++ vfu/vfu.h
+@@ -34,7 +34,7 @@
+
+ #include <vslib.h>
+
+- #ifdef _TARGET_NETBSD_
++ #if defined(_TARGET_NETBSD_) || defined(_TARGET_DRAGONFLY_)
+ #include <sys/param.h>
+ #include <sys/mount.h>
+ #else