]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
add missing #includes to build on gcc 4.7
authorTom Callaway <spot@redhat.com>
Fri, 17 Feb 2012 17:14:56 +0000 (09:14 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Feb 2012 17:17:22 +0000 (09:17 -0800)
Signed-off-by: Tom Callaway <spot@redhat.com>
Signed-off-by: David Nalley <david@gnsa.us>
src/cephfs.cc
src/common/safe_io.h
src/test/system/systest_runnable.cc

index 8ec0737426ab27907a3de3fae800a421e61dfb5c..46d3ff8ea27f72eb3769442d09815a166c241e9f 100644 (file)
@@ -24,6 +24,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdlib.h>
+#include <unistd.h>
 #include "client/ioctl.h"
 
 using namespace std;
index b62d682341ced15634337ca68f5023dd2f243b6d..4c2991fe6e86e96aed63fc269cdf54425d13508c 100644 (file)
@@ -16,6 +16,7 @@
 #define CEPH_SAFE_IO
 
 #include "common/compiler_extensions.h"
+#include <sys/types.h>
 
 #ifdef __cplusplus
 extern "C" {
index a342d8a5fd57d6dbb8f52f279ec3b19bc66fdff0..f646d2323f9ccfcd1670f7e2a46fa43c735c34d4 100644 (file)
@@ -28,6 +28,7 @@
 #include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <unistd.h>
 #include <vector>
 
 #if defined(__FreeBSD__)