pkgsrc-wip/dmd/patches/patch-ao

23 lines
732 B
Plaintext

$NetBSD: patch-ao,v 1.1.1.1 2011/02/16 17:10:41 thomasklausner Exp $
--- src/dmd/backend/strtold.c.orig 2010-12-20 20:02:36.000000000 +0000
+++ src/dmd/backend/strtold.c
@@ -20,7 +20,7 @@
#if _WIN32
#include <fltpnt.h>
#endif
-#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
+#if linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 || __NetBSD__
#include <errno.h>
#endif
@@ -30,7 +30,7 @@ extern char * __cdecl __locale_decpoint;
void __pascal __set_errno (int an_errno);
#endif
-#if _WIN32 || linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
+#if _WIN32 || linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 || __NetBSD__
#if 0
/* This is for compilers that don't support hex float literals,