Changes: Christian Thalinger
- $Id: memory.c 2845 2005-06-27 15:51:12Z twisti $
+ $Id: memory.c 3067 2005-07-19 14:11:42Z twisti $
*/
# include <sys/types.h>
#endif
-#include <sys/mman.h>
-#include <unistd.h>
-
#include "config.h"
+#include "arch.h"
+
+#if USE_CODEMMAP
+# include <sys/mman.h>
+# include <unistd.h>
+#endif
#include "mm/memory.h"
#include "native/native.h"
/********* general types, variables and auxiliary functions *********/
+#if USE_CODEMMAP
static int mmapcodesize = 0;
static void *mmapcodeptr = NULL;
+#endif
/*******************************************************************************
#endif
+#if USE_CODEMMAP
void *mem_mmap(s4 size)
{
void *m;
return m;
}
+#endif
static void *checked_alloc(s4 size)