From 6e3535f4fd08eb7e611b5711048308730bda862f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 13 Jun 2023 18:26:49 +0200 Subject: [PATCH] Fix macOS build --- src/nix/daemon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/daemon.cc b/src/nix/daemon.cc index 4d62d7689aa..d43bd65b0be 100644 --- a/src/nix/daemon.cc +++ b/src/nix/daemon.cc @@ -237,7 +237,7 @@ static PeerInfo getPeerInfo(int remote) socklen_t credLen = sizeof(cred); if (getsockopt(remote, SOL_LOCAL, LOCAL_PEERCRED, &cred, &credLen) == -1) throw SysError("getting peer credentials"); - peer = { false, 0, true, cred.cr_uid, false, 0 }; + peer = { .uid = cred.cr_uid }; #endif