diff --git a/Makefile b/Makefile index 86975d451..8d3689692 100644 --- a/Makefile +++ b/Makefile @@ -83,6 +83,10 @@ export OS ifeq (freebsd,$(OS)) SHELL=/usr/local/bin/bash +else ifeq (netbsd,$(OS)) + SHELL=/usr/pkg/bin/bash +else ifeq (dragonflybsd,$(OS)) + SHELL=/usr/local/bin/bash else SHELL=/bin/bash endif diff --git a/runnable/dhry.d b/runnable/dhry.d index 8f98f7626..05948805f 100644 --- a/runnable/dhry.d +++ b/runnable/dhry.d @@ -909,3 +909,14 @@ version (OSX) // supplied by Anders F Bjorklund } } +version (DragonFlyBSD) +{ + import core.stdc.time; + + double dtime() + { + double q; + q = cast(double)time(null); + return q; + } +} diff --git a/runnable/extra-files/cppb.cpp b/runnable/extra-files/cppb.cpp index ed677edd5..dd508277f 100644 --- a/runnable/extra-files/cppb.cpp +++ b/runnable/extra-files/cppb.cpp @@ -345,7 +345,7 @@ size_t getoffset13161a() /****************************************************/ -#if __linux__ || __APPLE__ || __FreeBSD__ +#if __linux__ || __APPLE__ || __FreeBSD__ || __DragonFly__ #include #include #include @@ -402,7 +402,7 @@ wchar_t f13289_cpp_wchar_t(wchar_t ch) } } -#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun +#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __DragonFly__ || __sun unsigned short f13289_d_wchar(unsigned short ch); wchar_t f13289_d_dchar(wchar_t ch); #elif _WIN32 @@ -412,7 +412,7 @@ unsigned int f13289_d_dchar(unsigned int ch); bool f13289_cpp_test() { -#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun +#if __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __DragonFly__ || __sun if (!(f13289_d_wchar((unsigned short)'c') == (unsigned short)'C')) return false; if (!(f13289_d_wchar((unsigned short)'D') == (unsigned short)'D')) return false; if (!(f13289_d_dchar(L'e') == L'E')) return false;