Re: [PATCH] Fix non-Linux build

Herbert Xu <[email protected]>
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Martijn Dekker <[email protected]> wrote:
> As of 509f5b0d, the build fails on Darwin/macOS, which does not have 
> memfd_create(2). The build fails on redir.c because the fallback for 
> memfd_create, which is defined in system.h, is not included. Presumably it is 
> the same on other systems without memfd_create.
> 
> diff --git a/src/redir.c b/src/redir.c
> index 2505d49..8a77a92 100644
> --- a/src/redir.c
> +++ b/src/redir.c
> @@ -57,6 +57,7 @@
>  #include "memalloc.h"
>  #include "error.h"
>  #include "trap.h"
> +#include "system.h"

The patch was white-space damaged but I applied it by hand.  Thanks.
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.