]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix "C++ One Definition Rule" warnings in XSK 14082/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 5 Apr 2024 08:20:49 +0000 (10:20 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 22 Apr 2024 09:13:34 +0000 (11:13 +0200)
commitc997b07630104750c0560e0d9a8f961ce5c74c4f
tree721f017ad9b5200a813121c490203bb0c977b242
parent4d238516b76f49c02e2ca2f8c179c4ab395f40dc
dnsdist: Fix "C++ One Definition Rule" warnings in XSK

It turns out we need to include the linux specific headers AFTER the
regular ones, because it then detects that some types have already been
defined (`sockaddr_in6` for example) and does not attempt to re-define
them, which otherwise breaks the C++ One Definition Rule

(cherry picked from commit 679360ad842c60e38f4009cecac6e1422c747889)
pdns/xsk.cc