Skip to content

Commit

Permalink
lib: Don't use NEEDS_LOCAL_CREDS undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mrannanj committed Oct 30, 2017
1 parent 1bc075e commit 32c7865
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/net.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 32c7865

Please sign in to comment.