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

Simon Josefsson jas at extundo.com
Mon Nov 14 18:12:39 CET 2005


Albert Chin <gnutls-dev at mlists.thewrittenword.com> writes:

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

Hi Albert!  Installed.

Thanks,
Simon

> -- 
> 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-dev mailing list