freebsd-ports/net/R-cran-pingr/files/patch-src_dns.c
Guangyuan Yang fce80f5303 net/R-cran-pingr: New port
Check if a Remote Computer is Up.
2022-01-14 05:37:03 -05:00

13 lines
269 B
C

--- src/dns.c.orig 2022-01-14 08:39:31 UTC
+++ src/dns.c
@@ -262,6 +262,10 @@ SEXP r_nsl(SEXP hostname, SEXP server, SEXP class, SEX
#else
+#ifdef __FreeBSD__
+#include <netinet/in.h>
+#endif
+
#include <resolv.h>
#include <netinet/in.h>
#include <arpa/inet.h>