]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
compat: define EREMOTEIO for OSX
authorYan, Zheng <zyan@redhat.com>
Fri, 27 May 2016 09:23:48 +0000 (17:23 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 18 Jul 2016 03:08:48 +0000 (11:08 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/include/compat.h
src/tools/rbd_mirror/ImageReplayer.cc
src/tools/rbd_mirror/image_replayer/BootstrapRequest.cc
src/tools/rbd_mirror/image_replayer/OpenLocalImageRequest.cc

index 7dc2833ad6fb10e669a8949bf8a4046c7c3c1916..ce98cc3a7acf8cd860a3eb946eff5cdd6f2cca7e 100644 (file)
@@ -68,6 +68,7 @@
 #if defined(__APPLE__)
 /* PATH_MAX */
 #include <limits.h>
+#define EREMOTEIO 121
 #endif /* __APPLE__ */
 
 /* O_LARGEFILE is not defined/required on OSX/FreeBSD */
index c2c0c40f6659cb9d5c109b5159f583ad4805eee2..84b40571a0bdd6a43325988351a9cc639dece88d 100644 (file)
@@ -1,6 +1,7 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include "include/compat.h"
 #include "common/Formatter.h"
 #include "common/debug.h"
 #include "common/errno.h"
index f471626e80f14847c91cda7da6bd70bfdec0b758..af5cac2fabfc805d509b303f9e2e0b6b3a8282eb 100644 (file)
@@ -1,6 +1,7 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include "include/compat.h"
 #include "BootstrapRequest.h"
 #include "CloseImageRequest.h"
 #include "CreateImageRequest.h"
index 35b6863098b46d56e8c4bba41610f12e4acadcc3..63597ebf4312e58e9cf9f4b4aaf9196073d42309 100644 (file)
@@ -1,6 +1,7 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include "include/compat.h"
 #include "OpenLocalImageRequest.h"
 #include "CloseImageRequest.h"
 #include "common/errno.h"