chore(3p/nix): Clean up some unused defines

This commit is contained in:
Vincent Ambo 2020-05-30 23:11:31 +01:00
parent 91ddc7603d
commit 699ab4e20a
5 changed files with 2 additions and 1529 deletions

View file

@ -90,13 +90,7 @@ ref<RemoteStore::Connection> UDSRemoteStore::openConnection() {
auto conn = make_ref<Connection>();
/* Connect to a daemon that does the privileged work for us. */
conn->fd = socket(PF_UNIX,
SOCK_STREAM
#ifdef SOCK_CLOEXEC
| SOCK_CLOEXEC
#endif
,
0);
conn->fd = socket(PF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
if (!conn->fd) {
throw SysError("cannot create Unix domain socket");
}