]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: reorder headers to fix OpenBSD build 6429/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Sat, 31 Mar 2018 16:42:43 +0000 (16:42 +0000)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Sat, 31 Mar 2018 16:49:58 +0000 (16:49 +0000)
pdns/dnsdist-lua.cc

index 8bfbaa1caf384182e02712fc272b10597b36d70c..1b1df5ab5c11ba148ae3a949b95d136c672d05ba 100644 (file)
 
 #include <dirent.h>
 #include <fstream>
+
+// for OpenBSD, sys/socket.h needs to come before net/if.h
+#include <sys/socket.h>
 #include <net/if.h>
+
 #include <sys/types.h>
-#include <sys/socket.h>
 #include <sys/stat.h>
 #include <thread>