]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: quic: fix build errors on FreeBSD since recent GSO changes
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2024 16:52:33 +0000 (18:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2024 16:53:49 +0000 (18:53 +0200)
commit2bc513dd31afb8b5a4e172d3efdb30bfdb87db0c
tree58cadd71cdb990f5d2022f9bd1b01d9c5e10b720
parentf627b9272bd8ffca6f2f898bfafc6bf0b84b7d46
BUILD: quic: fix build errors on FreeBSD since recent GSO changes

The following commits broke the build on FreeBSD when QUIC is enabled:

  35470d518 ("MINOR: quic: activate UDP GSO for QUIC if supported")
  448d3d388 ("MINOR: quic: add GSO parameter on quic_sock send API")

Indeed, it turns out that netinet/udp.h requires sys/types.h to be
included before. Let's just change the includes order to fix the build.
No backport is needed.
src/cfgparse-quic.c
src/quic_sock.c