Comment 1 for bug 932994

Revision history for this message
BJ Dierkes (derks) wrote :

The following patch resolves these issues:

Resolves https://bugs.launchpad.net/gearmand/+bug/932994
--- gearmand-0.28/util/pidfile.cc.orig 2011-08-17 10:38:30.000000000 -0500
+++ gearmand-0.28/util/pidfile.cc 2012-03-07 11:28:22.626664434 -0600
@@ -48,6 +48,7 @@
 #include <sstream>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <unistd.h>

 extern "C" {

--- gearmand-0.28/util/logfile.cc.orig 2011-08-17 10:38:30.000000000 -0500
+++ gearmand-0.28/util/logfile.cc 2012-03-07 11:48:21.600108725 -0600
@@ -49,6 +49,7 @@
 #include <sstream>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <unistd.h>

 namespace datadifferential {
 namespace util {