From 72b8c7397c2cc6b48532c6b04a44025e6bc9989c Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Fri, 5 Sep 2008 14:32:35 +0000 Subject: [PATCH] (win32) Replace missing symbols with values --- libtransmission/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/platform.c b/libtransmission/platform.c index 397ffb7f5..a1c5ddb4b 100644 --- a/libtransmission/platform.c +++ b/libtransmission/platform.c @@ -696,7 +696,7 @@ void *mmap (void *ptr, long size, long prot, long type, long handle, long arg) { ptr = VirtualAlloc (ptr, size, MEM_RESERVE | MEM_COMMIT | MEM_TOP_DOWN, PAGE_READWRITE); if (! ptr) { - ptr = MMAP_FAILURE; + ptr = (void *) -1; goto mmap_exit; } mmap_exit: @@ -708,7 +708,7 @@ mmap_exit: long munmap (void *ptr, long size) { static long g_pagesize; static long g_regionsize; - int rc = MUNMAP_FAILURE; + int rc = -1; /* Wait for spin lock */ slwait (&g_sl); /* First time initialization */