From: Noah Watkins Date: Sun, 4 Aug 2013 19:09:19 +0000 (-0700) Subject: rgw: add compat file for name service macros X-Git-Tag: v0.73~30^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81a3ea1bc03d50a2a5fd223c5ee44394bcf790b2;p=ceph.git rgw: add compat file for name service macros Signed-off-by: Noah Watkins --- diff --git a/configure.ac b/configure.ac index 9fc26e115ed3..2ecd0928bb48 100644 --- a/configure.ac +++ b/configure.ac @@ -538,6 +538,7 @@ AC_CHECK_FUNC([fallocate], []) +AC_CHECK_HEADERS([arpa/nameser_compat.h]) AC_CHECK_HEADERS([sys/prctl.h]) AC_CHECK_FUNCS([prctl]) AC_CHECK_FUNCS([pipe2]) diff --git a/src/rgw/rgw_resolve.cc b/src/rgw/rgw_resolve.cc index 9a8b14b2e018..471ac3f16781 100644 --- a/src/rgw/rgw_resolve.cc +++ b/src/rgw/rgw_resolve.cc @@ -3,6 +3,12 @@ #include #include +#include "acconfig.h" + +#ifdef HAVE_ARPA_NAMESER_COMPAT_H +#include +#endif + #include "rgw_common.h" #include "rgw_resolve.h"