]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/common/dns_resolve.cc: reorder the includes
authorWillem Jan Withagen <wjw@digiware.nl>
Fri, 29 Jul 2016 18:22:22 +0000 (20:22 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Fri, 29 Jul 2016 18:22:22 +0000 (20:22 +0200)
 - dns_resolv.h should only be include after all the std-includes are
   made. Otherwise it will result into undefined structs/variables on
   FreeBSD/Clang

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/dns_resolve.cc

index 8ec4cf616dba34aa6f7fba84e6dff4ab709152e3..77f5b52949752d69a07e94437511d53ec88324bf 100644 (file)
@@ -11,7 +11,6 @@
  * Foundation.  See file COPYING.
  *
  */
-#include "dns_resolve.h"
 
 #include <sys/types.h>
 #include <netinet/in.h>
@@ -19,6 +18,8 @@
 #include <arpa/inet.h>
 #include <resolv.h>
 
+#include "dns_resolve.h"
+
 #include "acconfig.h"
 #include "common/debug.h"
 #include "msg/msg_types.h"