From 2f2defc4525befd5b5cb69d03b7887db35e9e46c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 21 Jul 2003 13:18:44 +0000 Subject: [PATCH] Check for sys/mman.h. --- configure.in | 4 ++-- src/tincd.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index b192177b..92f62a9d 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in,v 1.13.2.69 2003/07/18 14:09:47 guus Exp $ +dnl $Id: configure.in,v 1.13.2.70 2003/07/21 13:18:43 guus Exp $ AC_PREREQ(2.53) AC_INIT(src/tincd.c) @@ -89,7 +89,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC -AC_CHECK_HEADERS([syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h sys/socket.h sys/wait.h netdb.h arpa/inet.h netinet/in_systm.h netinet/in.h]) +AC_CHECK_HEADERS([syslog.h sys/file.h sys/ioctl.h sys/param.h sys/time.h sys/socket.h sys/wait.h sys/mman.h netdb.h arpa/inet.h netinet/in_systm.h netinet/in.h]) AC_CHECK_HEADERS([net/ethernet.h net/if.h net/if_arp.h netinet/if_ether.h netinet/ip.h netinet/tcp.h netinet/ip_icmp.h netinet/ip6.h netinet/icmp6.h], [], [], [#ifdef HAVE_SYS_TYPES_H diff --git a/src/tincd.c b/src/tincd.c index 8ef8c514..da5eed6e 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: tincd.c,v 1.10.4.73 2003/07/17 15:06:27 guus Exp $ + $Id: tincd.c,v 1.10.4.74 2003/07/21 13:18:44 guus Exp $ */ #include "system.h" @@ -27,7 +27,9 @@ #define _P1003_1B_VISIBLE #endif +#ifdef HAVE_SYS_MMAN_H #include +#endif #include #include -- 2.39.5