Mercurial > dovecot > core-2.2
changeset 22951:25d147ae7057
lib: Don't use NEEDS_LOCAL_CREDS undefined
author | Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
---|---|
date | Mon, 30 Oct 2017 19:29:02 +0200 |
parents | a9e689fe3ee2 |
children | 20f8ba61498e |
files | src/lib/net.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/net.c Mon Oct 30 16:39:21 2017 +0200 +++ b/src/lib/net.c Mon Oct 30 19:29:02 2017 +0200 @@ -39,6 +39,8 @@ #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 @@ return -1; } return 0; -#elif NEEDS_LOCAL_CREDS +#elif defined(NEEDS_LOCAL_CREDS) /* NetBSD < 5 */ int i, n, on; struct iovec iov;