diff options
author | Azat Khuzhin <azat@libevent.org> | 2023-05-14 22:29:12 +0200 |
---|---|---|
committer | Azat Khuzhin <azat@libevent.org> | 2023-05-14 22:31:02 +0200 |
commit | 13f5552336f3b38f8bf9c7c33f28e785946565f5 (patch) | |
tree | b416aaeb0b534112d408c049dbcf0aa963d4dea9 | |
parent | 1f006637ecb23b09f36246e08986b3cb8fbfa562 (diff) | |
download | libevent-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.c | 3 |
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" |