openbsd-ports/lang/erlang/patches/patch-erts_configure_in
steven 3ee479223d update to erlang R11B-4
from maintainer Jon Olsson
2007-03-29 17:18:57 +00:00

21 lines
1.2 KiB
Plaintext

$OpenBSD: patch-erts_configure_in,v 1.2 2007/03/29 17:18:57 steven Exp $
--- erts/configure.in.orig Tue Mar 27 15:28:23 2007
+++ erts/configure.in Thu Mar 29 17:56:01 2007
@@ -1923,14 +1923,14 @@ static __inline__ int check_fpe(double f)
#endif
-#if (defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__sparc__) || defined(__powerpc__))) || (defined(__DARWIN__) && (defined(__i386__) || defined(__ppc__))) || (defined(__FreeBSD__) && (defined(__i386__) || defined(__x86_64__))) || (defined(__sun__) && defined(__x86_64__))
+#if (defined(__linux__) && (defined(__i386__) || defined(__x86_64__) || defined(__sparc__) || defined(__powerpc__))) || (defined(__DARWIN__) && (defined(__i386__) || defined(__ppc__))) || ((defined(__OpenBSD__) || defined(__FreeBSD__)) && (defined(__i386__) || defined(__x86_64__))) || (defined(__sun__) && defined(__x86_64__))
#if defined(__linux__) && defined(__i386__)
#include <asm/sigcontext.h>
#elif defined(__FreeBSD__) && defined(__i386__)
#include <sys/types.h>
#include <machine/npx.h>
-#elif defined(__FreeBSD__) && defined(__x86_64__)
+#elif (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__x86_64__)
#include <sys/types.h>
#include <machine/fpu.h>
#endif