bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 5/7] zerosize-ptr: Fix compilation on OS/2 kLIBC


From: Bruno Haible
Subject: Re: [PATCH 5/7] zerosize-ptr: Fix compilation on OS/2 kLIBC
Date: Tue, 19 Jan 2021 19:10:53 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

Applied with modifications:
> -#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
> +#if HAVE_SYS_MMAN_H && HAVE_MPROTECT && (!defined __KLIBC__ || HAVE_MMAP)

There's a comment two lines above, that explains why HAVE_MMAP is not
the right test here. And since you write "OS/2 kLIBC has <sys/mman.h>
and mprotect() but not mmap()", defined __KLIBC__ implies !HAVE_MMAP.

Bruno




reply via email to

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