#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#include <errno.h>
// Let's just use the underlying Mach Microkernel calls directly,
// they're much nicer.
- kern_return_t err;
+ kern_return_t err = 0;
ret = addr;
if(addr) // try to allocate at adress
err = vm_allocate(mach_task_self(),(vm_address_t*) &ret, size, FALSE);
osGetMBlocks(nat n)
{
caddr_t ret;
- lnat size = MBLOCK_SIZE * n;
+ lnat size = MBLOCK_SIZE * (lnat)n;
if (next_request == 0) {
// use gen_map_mblocks the first time.