Include <sys:socket.h> for AF_INET

Required to build on FreeBSD 15.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
Dimitri Papadopoulos
2026-05-06 20:33:03 +02:00
parent 22bbad4eb5
commit eb886a7c67
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@
option (enabled by default)
- Limited HTTP header size to 16 KB to complement the existing 256 KB
body limit
- Fix build issue on FreeBSD (#704)
* Version 1.4.2 (released 2026-04-16)
+1
View File
@@ -24,6 +24,7 @@
#include <string.h>
#include <ctype.h>
#include <arpa/inet.h>
#include <sys/socket.h>
/* Validates a single hostname label per RFC 952 as updated by RFC 1123:
* - first character: letter or digit (RFC 1123 relaxes RFC 952's letter-only rule)