From 058160d2df3fd4801b1562fce5d29d9f3da95c1c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 12 Apr 2014 22:03:41 +0000 Subject: Fix compilation on Debian 7 (Wheezy) by including bsd/unistd.h. If libedit is installed then -ledit will be detected and added to the link line, which makes the test for getpeereid pass. Then SocketStream.cpp tries to use it, but that won't work unless we include bsd/unistd.h where the prototype is declared. --- lib/server/SocketStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/server/SocketStream.cpp b/lib/server/SocketStream.cpp index 6ef4b8d1..f0bfcf94 100644 --- a/lib/server/SocketStream.cpp +++ b/lib/server/SocketStream.cpp @@ -25,6 +25,10 @@ #include #endif +#ifdef HAVE_BSD_UNISTD_H + #include +#endif + #include "SocketStream.h" #include "ServerException.h" #include "CommonException.h" -- cgit v1.2.3