gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Simon Josefsson
Subject: [gnutls-dev] Re: mmap() available on Tru64 UNIX 4.0d but not MAP_FAILED
Date: Mon, 14 Nov 2005 18:12:39 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

Albert Chin <address@hidden> writes:

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

Hi Albert!  Installed.

Thanks,
Simon

> -- 
> 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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]