Skip to content

Commit

Permalink
networkTools: Fix compilation on FreeBSD
Browse files Browse the repository at this point in the history
Header <netinet/in.h> should be included (as per POSIX) to get a definition for
'struct sockaddr_in'.  Fixes commit "add ipv6 support to HTTP daemon".
  • Loading branch information
OlCe2 committed Jan 8, 2025
1 parent 59c7da0 commit a66fa82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/networkTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <net/if.h>
#include <netdb.h>
#endif
Expand Down

0 comments on commit a66fa82

Please sign in to comment.