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.
#include <errno.h>
#include <string.h>
+
+#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/udp.h>
#include <stdlib.h>
#include <string.h>
-#include <netinet/in.h>
-#include <netinet/udp.h>
#include <sys/socket.h>
#include <sys/types.h>
+#include <netinet/in.h>
+#include <netinet/udp.h>
#include <haproxy/api.h>
#include <haproxy/buf.h>