This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Add _POSIX_MEMLOCK_RANGE for Cygwin
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 18 Oct 2005 20:39:52 +0200
- Subject: Add _POSIX_MEMLOCK_RANGE for Cygwin
- Reply-to: newlib at sources dot redhat dot com
Hi,
FYI, I've applied the below patch to newlib. It adds a define
for _POSIX_MEMLOCK_RANGE for Cygwin.
Corinna
* libc/include/sys/features.h: Define _POSIX_MEMLOCK_RANGE for Cygwin.
Index: libc/include/sys/features.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/features.h,v
retrieving revision 1.6
diff -u -p -r1.6 features.h
--- libc/include/sys/features.h 9 Feb 2004 02:22:01 -0000 1.6
+++ libc/include/sys/features.h 18 Oct 2005 18:38:55 -0000
@@ -88,6 +88,7 @@ extern "C" {
# define _POSIX_THREAD_ATTR_STACKSIZE 1
# define _POSIX_SEMAPHORES 1
# define _POSIX_TIMERS 1
+# define _POSIX_MEMLOCK_RANGE 1
#endif
#ifdef __cplusplus
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.