]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/simple: s/ceph::size/std::size/
authorKefu Chai <kchai@redhat.com>
Wed, 10 Jan 2018 13:36:08 +0000 (21:36 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Jan 2018 13:37:32 +0000 (21:37 +0800)
this should fix the build on platforms without pipe2(2)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/msg/simple/Accepter.cc

index 2fbcf6b50d940e276fb57cc6d7415827fcf0f608..b95cb4337372d04c46f4e5cada70a23b399f805e 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include "include/compat.h"
+#include <iterator>
 #include <sys/socket.h>
 #include <netinet/tcp.h>
 #include <sys/uio.h>
@@ -59,7 +60,7 @@ int Accepter::create_selfpipe(int *pipe_rd, int *pipe_wr) {
 #else
   int ret = ::pipe(selfpipe);
   if (ret == 0) {
-    for (int i = 0; i < ceph::size(selfpipe); i++) {
+    for (int i = 0; i < std::size(selfpipe); i++) {
       int f = fcntl(selfpipe[i], F_GETFD);
       fcntl(selfpipe[i], F_SETFD, f | FD_CLOEXEC | O_NONBLOCK);
     }