|author||Chris Wilson <email@example.com>||2014-04-12 22:03:41 +0000|
|committer||Chris Wilson <firstname.lastname@example.org>||2014-04-12 22:03:41 +0000|
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.
Diffstat (limited to 'lib')
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/server/SocketStream.cpp b/lib/server/SocketStream.cpp
index 6ef4b8d1..f0bfcf94 100644
@@ -25,6 +25,10 @@
+ #include <bsd/unistd.h>