1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/lang/mozart/files/patch-ae
Steve Price d7377ebf72 Adding mozart version 1.1.0.20000207.
A concurrent, object-oriented, distributed language with constraint-based
inference.

PR:		19476
Submitted by:	Mathias Picker <mathiasp@virtual-earth.de>
2000-07-10 03:37:42 +00:00

25 lines
681 B
Plaintext

--- ../mozart-orig/platform/emulator/mem.cc Fri Jun 23 12:59:01 2000
+++ platform/emulator/mem.cc Fri Jun 23 12:59:36 2000
@@ -90,18 +90,19 @@
// This is optional - that's kind'f not clear which evil is the
// smallest one: rely on "choose a nearest next free address" linux
// behaviour, or to use the discouraged 'MAP_FIXED' option;
-#if defined(LINUX_I486)
+#if defined(LINUX_I486) || defined (__FreeBSD__)
#define USE_AUTO_PLACEMENT
#endif
//
#if defined(HAVE_MMAP)
+#include <sys/mman.h>
+
#if ( !defined(MAP_ANONYMOUS) && defined(MAP_ANON) )
#define MAP_ANONYMOUS MAP_ANON
#endif
-#include <sys/mman.h>
#include <fcntl.h>
#if !defined(USE_AUTO_PLACEMENT)