]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-replay: Different location of endian.h on DARWIN
authorDennis Schafroth <dennis@schafroth.dk>
Tue, 30 Jun 2015 18:13:10 +0000 (20:13 +0200)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Aug 2015 07:35:57 +0000 (15:35 +0800)
Signed-off-by: Dennis Schafroth <dennis@schafroth.com>
src/rbd_replay/Deser.cc
src/rbd_replay/Ser.cc

index 986a18c166a66eab22424727b606fede017f467b..af7992382f441e5936ba5e57b38bd17081e3ab4f 100644 (file)
  * Foundation.  See file COPYING.
  *
  */
-
+#include "acconfig.h"
 #include "Deser.hpp"
 #include <arpa/inet.h>
 #include <cstdlib>
+#if defined(DARWIN)
+#include <machine/endian.h>
+#else
 #include <endian.h>
-
+#endif
 
 rbd_replay::Deser::Deser(std::istream &in)
   : m_in(in) {
index 97a63cdcd5d81650213be8219a1c0ee65bbf0604..bc3e3777b3270a708834115275f80ac778fd6c8b 100644 (file)
  *
  */
 
+#include "acconfig.h"
 #include "Ser.hpp"
 #include <arpa/inet.h>
 #include <cstdlib>
+#if defined(DARWIN)
+#include <machine/endian.h>
+#else
 #include <endian.h>
-
+#endif
 
 rbd_replay::Ser::Ser(std::ostream &out)
   : m_out(out) {