[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master build broken [macOS]
From: |
Eli Zaretskii |
Subject: |
Re: master build broken [macOS] |
Date: |
Mon, 03 Dec 2018 14:33:14 +0200 |
> 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));