configure.ac: include netinet/in_systm.h where needed

Austin English austinenglish at gmail.com
Thu Jan 22 10:54:25 CST 2009


netinet/in_systm.h is depended on by a few other includes on NetBSD
(netinet/ip_icmp.h & netinet/icmp_var.h).

Changelog:
Try 1 wasn't a proper git diff.
Combined a couple other individual patches into a single series.

Tested both on NetBSD 4.0.1 / Ubuntu Intrepid.

Helps fix bugs 16661/16931.

-- 
-Austin
-------------- next part --------------
From 75079bedef14d7a116ee9184fa54d3bf697de4bd Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Thu, 22 Jan 2009 10:45:33 -0600
Subject: [PATCH] configure.ac: include netinet/in_systm.h where needed

---
 configure.ac |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index f5cf0a0..1caeaba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -402,6 +402,9 @@ AC_CHECK_HEADERS(\
      #ifdef HAVE_NETINET_IN_H
      # include <netinet/in.h>
      #endif
+     #ifdef HAVE_NETINET_IN_SYSTM_H
+     # include <netinet/in_systm.h>
+     #endif
      #ifdef HAVE_NETINET_IP_H
      # include <netinet/ip.h>
      #endif])
@@ -420,6 +423,9 @@ AC_CHECK_HEADERS([netinet/udp_var.h netinet/icmp_var.h netinet/tcp_timer.h ],,,
      #ifdef HAVE_NETINET_IN_H
      # include <netinet/in.h>
      #endif
+     #ifdef HAVE_NETINET_IN_SYSTM_H
+     # include <netinet/in_systm.h>
+     #endif
      #ifdef HAVE_NETINET_IP_H
      # include <netinet/ip.h>
      #endif
-- 
1.5.4.3


More information about the wine-patches mailing list