[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] mmap() available on Tru64 UNIX 4.0d but not MAP_FAILED
From: |
Albert Chin |
Subject: |
[gnutls-dev] mmap() available on Tru64 UNIX 4.0d but not MAP_FAILED |
Date: |
Mon, 14 Nov 2005 10:23:46 -0600 |
User-agent: |
Mutt/1.5.6i |
Tru64 UNIX 4.0D which has mmap() but doesn't define MAP_FAILED.
--
albert chin (address@hidden)
-- 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>
- [gnutls-dev] mmap() available on Tru64 UNIX 4.0d but not MAP_FAILED,
Albert Chin <=