From a8e5f8c6c2d75f184ba5ca0525762e67570233a9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 9 Oct 2003 11:40:16 +0000 Subject: [PATCH] * include/sys/mman.h (MAP_FAILED): Define as void *. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/sys/mman.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 854ddbd1f..3b91457c2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-10-09 Yitzchak Scott-Thoennes + + * include/sys/mman.h (MAP_FAILED): Define as void *. + 2003-10-08 Christopher Faylor * dcrt0.cc (hMainProc): Initialize to useful value for use when dll is diff --git a/winsup/cygwin/include/sys/mman.h b/winsup/cygwin/include/sys/mman.h index 13393e9cc..3264739c0 100644 --- a/winsup/cygwin/include/sys/mman.h +++ b/winsup/cygwin/include/sys/mman.h @@ -31,7 +31,7 @@ extern "C" { #define MAP_ANONYMOUS 0x20 #define MAP_ANON MAP_ANONYMOUS -#define MAP_FAILED ((caddr_t)-1) +#define MAP_FAILED ((void *)-1) /* * Flags for msync. -- 2.43.5