Skip to content

Commit

Permalink
build: add sys/socket.h to dnsbl_filter
Browse files Browse the repository at this point in the history
Fix building on OpenBSD.

exch/dnsbl_filter.cpp:38:16: error: use of undeclared identifier 'AF_INET6'
        if (inet_pton(AF_INET6, src, &dst) != 1) {
                      ^
1 error generated.
  • Loading branch information
brad0 authored and jengelh committed Jul 2, 2024
1 parent 87c4df9 commit 3654a57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exch/dnsbl_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
#include <cerrno>
#include <cstring>
#include <string>
# include <arpa/inet.h>
#include <arpa/inet.h>
#include <libHX/string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <gromox/config_file.hpp>
#include <gromox/scope.hpp>
Expand Down

0 comments on commit 3654a57

Please sign in to comment.