]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
compat: define HOST_NAME_MAX for OSX
authorYan, Zheng <zyan@redhat.com>
Fri, 27 May 2016 10:17:13 +0000 (18:17 +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/crush/CrushLocation.cc
src/include/compat.h

index 310f14879deb6b4dba220fb1dbb3e09d6a35ceb4..74f663274ab31e25aa84efe9dbf1aa47278f28fc 100644 (file)
@@ -7,6 +7,7 @@
 #include "common/config.h"
 #include "include/str_list.h"
 #include "common/debug.h"
+#include "include/compat.h"
 
 #include <common/SubProcess.h>
 
index ce98cc3a7acf8cd860a3eb946eff5cdd6f2cca7e..df9c6be43c5d97f39658fc4e2971cf73bd661a56 100644 (file)
@@ -69,6 +69,7 @@
 /* PATH_MAX */
 #include <limits.h>
 #define EREMOTEIO 121
+#define HOST_NAME_MAX 255
 #endif /* __APPLE__ */
 
 /* O_LARGEFILE is not defined/required on OSX/FreeBSD */