summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Callaway <spot@redhat.com>2012-02-17 18:14:56 +0100
committerSage Weil <sage@newdream.net>2012-02-17 18:17:22 +0100
commit2325da8635bdacf134975f219922c76fe944549e (patch)
treef08ba765e3d617946d417e646f5dc6296bc911a4
parentmds: comment out unused code in mds dump_pop_map (diff)
downloadceph-2325da8635bdacf134975f219922c76fe944549e.tar.xz
ceph-2325da8635bdacf134975f219922c76fe944549e.zip
add missing #includes to build on gcc 4.7
Signed-off-by: Tom Callaway <spot@redhat.com> Signed-off-by: David Nalley <david@gnsa.us>
-rw-r--r--src/cephfs.cc1
-rw-r--r--src/common/safe_io.h1
-rw-r--r--src/test/system/systest_runnable.cc1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/cephfs.cc b/src/cephfs.cc
index 8ec0737426a..46d3ff8ea27 100644
--- a/src/cephfs.cc
+++ b/src/cephfs.cc
@@ -24,6 +24,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
+#include <unistd.h>
#include "client/ioctl.h"
using namespace std;
diff --git a/src/common/safe_io.h b/src/common/safe_io.h
index b62d682341c..4c2991fe6e8 100644
--- a/src/common/safe_io.h
+++ b/src/common/safe_io.h
@@ -16,6 +16,7 @@
#define CEPH_SAFE_IO
#include "common/compiler_extensions.h"
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {
diff --git a/src/test/system/systest_runnable.cc b/src/test/system/systest_runnable.cc
index a342d8a5fd5..f646d2323f9 100644
--- a/src/test/system/systest_runnable.cc
+++ b/src/test/system/systest_runnable.cc
@@ -28,6 +28,7 @@
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <unistd.h>
#include <vector>
#if defined(__FreeBSD__)