summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-10-11 21:52:58 +0000
committerChris Wilson <chris+github@qwirx.com>2008-10-11 21:52:58 +0000
commitc8f7022057335e33c6eea565208f4b70fbef4288 (patch)
tree3329cd3a98fd3c392bd47682215b702f80bcab28 /lib
parentec5d4ab2b2cf334240673ca918ed1240a6dfb4b8 (diff)
Don't blindly use an undefined symbol in #if.
Diffstat (limited to 'lib')
-rw-r--r--lib/server/SocketStream.cpp2
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)
{