Skip to content

Commit

Permalink
netxlite: include sys/socket.h on any non-Windows system
Browse files Browse the repository at this point in the history
Idea from bassosimone
  • Loading branch information
René Ladan committed Dec 1, 2024
1 parent 1f1d9c7 commit 8f00497
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/netxlite/getaddrinfo_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ package netxlite
#ifndef _WIN32
#include <netdb.h> // for getaddrinfo
#ifdef __FreeBSD__
#include <sys/socket.h> // for C.SOCK_STREAM and C.AF_*
#endif
#else
#include <ws2tcpip.h> // for getaddrinfo
#endif
Expand Down

0 comments on commit 8f00497

Please sign in to comment.