From 1de5f0a5c0c574b5764970f32331fbfd13b88c0c Mon Sep 17 00:00:00 2001
From: Nathan Weeks <weeks@iastate.edu>
Date: Wed, 10 Oct 2012 12:50:46 -0500
Subject: [PATCH] sockaddr_in and sockaddr_in6 are defined in netinet/in.h,
 which may or may not be included by arpa/inet.h (per POSIX.1-2008).
 Explicitly include netinet/in.h to compilation on FreeBSD 9.0.

---
 src/utils/BamTools/src/api/internal/io/NetUnix_p.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/utils/BamTools/src/api/internal/io/NetUnix_p.h b/src/utils/BamTools/src/api/internal/io/NetUnix_p.h
index 8cf75f8d..f06c4df7 100644
--- a/src/utils/BamTools/src/api/internal/io/NetUnix_p.h
+++ b/src/utils/BamTools/src/api/internal/io/NetUnix_p.h
@@ -23,6 +23,7 @@
 #ifndef _WIN32 // <-- source files only include the proper Net*_p.h, but this is a double-check
 
 #include <arpa/inet.h>
+#include <netinet/in.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
-- 
GitLab