From: Guus Sliepen Date: Mon, 21 Jul 2003 13:18:44 +0000 (+0000) Subject: Check for sys/mman.h. X-Git-Tag: import-tinc-1.1~785^2~150 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=2f2defc4525befd5b5cb69d03b7887db35e9e46c;p=meshlink Check for sys/mman.h. --- 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