Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on FreeBSD #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ SEXP r_nsl(SEXP hostname, SEXP server, SEXP class, SEXP type) {

#else

#include <netinet/in.h> // This needs to be before resolv.h for FreeBSD, see #19
#include <resolv.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <arpa/nameser.h>
Expand Down
4 changes: 4 additions & 0 deletions src/rping.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ void usleep(__int64 usec) {
# define WINCLEANUP()
#endif

#ifdef __FreeBSD__
yzgyyang marked this conversation as resolved.
Show resolved Hide resolved
#include <netinet/in.h> // This needs to be before resolv.h for FreeBSD, see #19
#endif

#include <sys/types.h>
#include <sys/time.h>
#include <errno.h>
Expand Down