diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 21:52:58 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-10-11 21:52:58 +0000 |
commit | c8f7022057335e33c6eea565208f4b70fbef4288 (patch) | |
tree | 3329cd3a98fd3c392bd47682215b702f80bcab28 | |
parent | ec5d4ab2b2cf334240673ca918ed1240a6dfb4b8 (diff) |
Don't blindly use an undefined symbol in #if.
-rw-r--r-- | lib/server/SocketStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server/SocketStream.cpp b/lib/server/SocketStream.cpp index d6565984..e09a7f1e 100644 --- a/lib/server/SocketStream.cpp +++ b/lib/server/SocketStream.cpp @@ -482,7 +482,7 @@ bool SocketStream::GetPeerCredentials(uid_t &rUidOut, gid_t &rGidOut) BOX_LOG_SYS_ERROR("Failed to get peer credentials on socket"); #endif -#if HAVE_UCRED_H && HAVE_GETPEERUCRED +#if defined HAVE_UCRED_H && HAVE_GETPEERUCRED ucred_t *pucred = NULL; if(::getpeerucred(mSocketHandle, &pucred) == 0) { |