[gnutls-dev] mmap() available on Tru64 UNIX 4.0d but not MAP_FAILED

Albert Chin gnutls-dev at mlists.thewrittenword.com
Mon Nov 14 17:23:46 CET 2005


Tru64 UNIX 4.0D which has mmap() but doesn't define MAP_FAILED.

-- 
albert chin (china at thewrittenword.com)

-- snip snip
Index: lib/gnutls_x509.c
===================================================================
--- lib/gnutls_x509.c.orig	2005-11-12 21:44:49.858670000 -0600
+++ lib/gnutls_x509.c	2005-11-13 13:39:58.025254000 -0600
@@ -697,6 +697,9 @@
 #ifdef HAVE_MMAP
 # include <unistd.h>
 # include <sys/mman.h>
+# ifndef MAP_FAILED
+#  define MAP_FAILED (void *)-1L
+# endif
 #endif
 
 #include <strfile.h>




More information about the Gnutls-devel mailing list