[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master build broken [macOS]
From: |
Filipp Gunbin |
Subject: |
Re: master build broken [macOS] |
Date: |
Mon, 03 Dec 2018 17:14:01 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (darwin) |
On 03/12/2018 14:33 +0200, Eli Zaretskii wrote:
>> From: Filipp Gunbin <address@hidden>
>> Date: Mon, 03 Dec 2018 14:47:31 +0300
>>
>> CCLD emacsclient
>> emacsclient.c:1426:58: error: use of undeclared identifier 'SOCK_CLOEXEC'
>> HSOCKET s = cloexec_socket (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
>> ^
>> 1 error generated.
>
> Does the below fix the problem?
>
> diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
> index c430217..7de3665 100644
> --- a/lib-src/emacsclient.c
> +++ b/lib-src/emacsclient.c
> @@ -1423,7 +1423,7 @@ set_local_socket (char const *server_name)
>
> if (sock_status == 0)
> {
> - HSOCKET s = cloexec_socket (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
> + HSOCKET s = cloexec_socket (AF_UNIX, SOCK_STREAM, 0);
> if (s < 0)
> {
> message (true, "%s: socket: %s\n", progname, strerror (errno));
Yes, it does, thanks.