summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2023-05-14 22:29:12 +0200
committerAzat Khuzhin <azat@libevent.org>2023-05-14 22:31:02 +0200
commit13f5552336f3b38f8bf9c7c33f28e785946565f5 (patch)
treeb416aaeb0b534112d408c049dbcf0aa963d4dea9
parent1f006637ecb23b09f36246e08986b3cb8fbfa562 (diff)
downloadlibevent-13f5552336f3b38f8bf9c7c33f28e785946565f5.tar.gz
test: add missing include of arpa/inet.h for ntohs in regress_ws.c
This will fix one warning in FreeBSD
-rw-r--r--test/regress_ws.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/regress_ws.c b/test/regress_ws.c
index 436cb627..c0538940 100644
--- a/test/regress_ws.c
+++ b/test/regress_ws.c
@@ -48,6 +48,9 @@
#include <netdb.h>
#endif
#include <string.h>
+#ifdef EVENT__HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
#include "event2/event.h"
#include "event2/http.h"