]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add compat file for name service macros 822/head
authorNoah Watkins <noahwatkins@gmail.com>
Sun, 4 Aug 2013 19:09:19 +0000 (12:09 -0700)
committerNoah Watkins <noahwatkins@gmail.com>
Tue, 5 Nov 2013 21:38:48 +0000 (13:38 -0800)
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
configure.ac
src/rgw/rgw_resolve.cc

index 9fc26e115ed3fd669c9025ae85c9606f81bb04dc..2ecd0928bb48ff08648b6cc88c796cea6aab470d 100644 (file)
@@ -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])
index 9a8b14b2e0185911233c70e949b41658c6ae7de8..471ac3f167816eb6f99ed8d2a16dac3596191414 100644 (file)
@@ -3,6 +3,12 @@
 #include <arpa/nameser.h>
 #include <resolv.h>
 
+#include "acconfig.h"
+
+#ifdef HAVE_ARPA_NAMESER_COMPAT_H
+#include <arpa/nameser_compat.h>
+#endif
+
 #include "rgw_common.h"
 #include "rgw_resolve.h"