aboutsummaryrefslogtreecommitdiffstats
path: root/lang/mono/files/patch-mono_utils_mono-codeman.c
blob: c5f06b3335ab982e2984353eae9e44dcd3a7d934 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- mono/utils/mono-codeman.c.orig  Tue Aug  2 17:52:22 2005
+++ mono/utils/mono-codeman.c   Tue Aug  2 17:52:29 2005
@@ -40,7 +40,11 @@
 #endif
 #endif
 
-#ifdef __x86_64__
+#if defined(__x86_64__) && defined(__FreeBSD__)
+#define FORCE_MALLOC
+#endif
+
+#if defined(__x86_64__) && !defined(__FreeBSD__)
 #define ARCH_MAP_FLAGS MAP_32BIT
 #else
 #define ARCH_MAP_FLAGS 0
@@ -282,7 +286,7 @@
    chunk->pos = bsize;
    chunk->bsize = bsize;
 
-   /*printf ("code chunk at: %p\n", ptr);*/
+   //printf ("code chunk at: %p\n", ptr);
    return chunk;
 }