]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Tru64 UNIX 4.0D has mmap() but doesn't define MAP_FAILED, tiny patch from Albert...
authorSimon Josefsson <simon@josefsson.org>
Mon, 14 Nov 2005 17:12:14 +0000 (17:12 +0000)
committerSimon Josefsson <simon@josefsson.org>
Mon, 14 Nov 2005 17:12:14 +0000 (17:12 +0000)
lib/gnutls_x509.c

index 7c78a6e630827eb2f813fa47257045d301a5b574..34cc5bb67ab4680abd7aa01ef9a5ca0c33bff1af 100644 (file)
@@ -749,6 +749,9 @@ read_key_mem (gnutls_certificate_credentials_t res,
 #ifdef HAVE_MMAP
 # include <unistd.h>
 # include <sys/mman.h>
+# ifndef MAP_FAILED
+#  define MAP_FAILED (void *)-1L
+# endif
 #endif
 
 #include <strfile.h>