summaryrefslogtreecommitdiff
path: root/native/jni/native-lib/cpnet.h
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/native-lib/cpnet.h')
-rw-r--r--native/jni/native-lib/cpnet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/jni/native-lib/cpnet.h b/native/jni/native-lib/cpnet.h
index 72850b4c8..979c363c2 100644
--- a/native/jni/native-lib/cpnet.h
+++ b/native/jni/native-lib/cpnet.h
@@ -44,9 +44,13 @@ exception statement from your version. */
#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
+#endif /* HAVE_NETINET_IN_SYSTM_H */
#include <netinet/in.h>
+#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
+#endif /* HAVE_NETINET_IP_H */
typedef struct {
jint len;