summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-11-11 11:18:21 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-11-11 11:18:21 +0000
commita35d65c3465de9661325a9295715b1ef298eb888 (patch)
treecc6d3b51d37e3eef79f7c8137d9e9c4abd4fa5a1 /compiler
parent4842f1a5da2f5a297d870e5b8f8299de4093a7a2 (diff)
downloadhaskell-a35d65c3465de9661325a9295715b1ef298eb888.tar.gz
Support for DragonFly BSD
Patches from Goetz Isenmann <info@goetz-isenmann.de>, slightly updated for HEAD (the method for configuring platforms in configure.ac has changed).
Diffstat (limited to 'compiler')
-rw-r--r--compiler/nativeGen/NCG.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/nativeGen/NCG.h b/compiler/nativeGen/NCG.h
index b17f682e71..3a7bfcd5e8 100644
--- a/compiler/nativeGen/NCG.h
+++ b/compiler/nativeGen/NCG.h
@@ -38,6 +38,12 @@
# define IF_OS_freebsd(x,y) y
#endif
-- - - - - - - - - - - - - - - - - - - - - -
+#if dragonfly_TARGET_OS
+# define IF_OS_dragonfly(x,y) x
+#else
+# define IF_OS_dragonfly(x,y) y
+#endif
+-- - - - - - - - - - - - - - - - - - - - - -
#if netbsd_TARGET_OS
# define IF_OS_netbsd(x,y) x
#else