Open GoogleCodeExporter opened 8 years ago
I fixed this issue by adding a few includes:
===================================================================
--- src/engine/code.cc (revision 53)
+++ src/engine/code.cc (working copy)
@@ -18,6 +18,7 @@
#include <string>
#include <errno.h>
#include <sys/mman.h>
+#include <unistd.h>
#include "engine/globals.h"
#include "public/logging.h"
Index: src/utilities/random_base.cc
===================================================================
--- src/utilities/random_base.cc (revision 53)
+++ src/utilities/random_base.cc (working copy)
@@ -18,6 +18,7 @@
#include <string>
#include <memory.h>
#include <assert.h>
+#include <unistd.h>
#include "public/porting.h"
#include "public/logging.h"
Original comment by nathani...@qualtrics.com
on 18 Mar 2013 at 10:06
The missing declarations are for getpagesize (code.cc) and getpid and
gethostname (random_base.cc). I prefer this patch because it integrates
slightly better with the autoconf structure:
Original comment by aecolley
on 13 Oct 2013 at 7:41
Attachments:
Original issue reported on code.google.com by
Helight.Xu@gmail.com
on 6 Mar 2013 at 9:50