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.3.0.rc1~689 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=32c78657815ca74bfcc6254af457930d003f05ca;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 abf4ecfc05..7dd0c12058 100644 --- a/src/lib/net.c +++ b/src/lib/net.c @@ -32,6 +32,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 @@ -835,7 +837,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;