pkgsrc-wip/dmd/patches/patch-ac

23 lines
633 B
Plaintext

$NetBSD: patch-ac,v 1.1.1.1 2011/02/16 17:10:41 thomasklausner Exp $
--- src/dmd/backend/evalu8.c.orig 2010-12-20 20:02:36.000000000 +0000
+++ src/dmd/backend/evalu8.c
@@ -24,7 +24,7 @@
#include <fp.h>
#endif
-#if __FreeBSD__
+#if __FreeBSD__ || __NetBSD__
#define fmodl fmod
#endif
@@ -42,7 +42,7 @@ static char __file__[] = __FILE__;
extern void error(const char *filename, unsigned linnum, const char *format, ...);
-#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
+#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 || __NetBSD__
int _status87()
{
return fetestexcept(FE_ALL_EXCEPT);