summaryrefslogtreecommitdiff
path: root/misc/vfu/patches/patch-ai
blob: 816c07d6b16525d596f2788be6112766fb3f40b3 (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
$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