From: Martti Rannanjärvi Date: Mon, 30 Oct 2017 17:29:02 +0000 (+0200) Subject: lib: Don't use NEEDS_LOCAL_CREDS undefined X-Git-Tag: 2.2.36~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0db6eb8dc1648a786ad4ec53e8baaa7d2e32a865;p=thirdparty%2Fdovecot%2Fcore.git lib: Don't use NEEDS_LOCAL_CREDS undefined --- diff --git a/src/lib/net.c b/src/lib/net.c index 2f58d84561..4a083a745c 100644 --- a/src/lib/net.c +++ b/src/lib/net.c @@ -39,6 +39,8 @@ union sockaddr_union_unix { #if !defined(HAVE_GETPEEREID) && !defined(SO_PEERCRED) && !defined(HAVE_GETPEERUCRED) && defined(MSG_WAITALL) && defined(LOCAL_CREDS) # define NEEDS_LOCAL_CREDS 1 +#else +# undef NEEDS_LOCAL_CREDS #endif /* If connect() fails with EADDRNOTAVAIL (or some others on FreeBSD), retry it @@ -883,7 +885,7 @@ int net_getunixcred(int fd, struct net_unix_cred *cred_r) return -1; } return 0; -#elif NEEDS_LOCAL_CREDS +#elif defined(NEEDS_LOCAL_CREDS) /* NetBSD < 5 */ int i, n, on; struct iovec iov;