[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tinc configure.in,1.13.2.66,1.13.2.67 system.h,1.1.4.5,1.1.4.6
Update of /home/CVS/tinc
In directory humbolt:/tmp/cvs-serv5751
Modified Files:
Tag: CABAL
configure.in system.h
Log Message:
Big header file cleanup: everything that has to do with standard system
libraries is moved to system.h.
Index: configure.in
===================================================================
RCS file: /home/CVS/tinc/configure.in,v
retrieving revision 1.13.2.66
retrieving revision 1.13.2.67
diff -u -r1.13.2.66 -r1.13.2.67
--- configure.in 2003/07/11 16:12:58 1.13.2.66
+++ configure.in 2003/07/17 15:06:25 1.13.2.67
@@ -67,6 +67,10 @@
AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin])
[ rm -f src/device.c; ln -sf cygwin/device.c src/device.c ]
;;
+ *mingw*)
+ AC_DEFINE(HAVE_CYGWIN, 1, [MinGW])
+ [ rm -f src/device.c; ln -sf mingw/device.c src/device.c ]
+ ;;
*)
AC_MSG_ERROR("Unknown operating system.")
;;
@@ -85,14 +89,18 @@
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \
- sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h])
-AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/ip6.h], [], [],
- [#include <sys/types.h>
- #include <sys/socket.h>
- #ifdef HAVE_NETINET_IN_SYSTM_H
- #include <netinet/in_systm.h>
- #endif])
+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])
+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],
+ [], [],
+ [#include <sys/types.h>
+ #include <sys/socket.h>
+ #ifdef HAVE_NETINET_IN_SYSTM_H
+ #include <netinet/in_systm.h>
+ #endif
+ ]
+)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
Index: system.h
===================================================================
RCS file: /home/CVS/tinc/system.h,v
retrieving revision 1.1.4.5
retrieving revision 1.1.4.6
diff -u -r1.1.4.5 -r1.1.4.6
--- system.h 2002/08/24 12:11:39 1.1.4.5
+++ system.h 2003/07/17 15:06:25 1.1.4.6
@@ -1,6 +1,7 @@
/*
- system.h -- header for locale settings
- Copyright (C) 1998,99,2000 Ivo Timmermans <ivo@o2w.nl.com>
+ system.h -- system headers
+ Copyright (C) 1998-2003 Ivo Timmermans <ivo@o2w.nl>
+ 2003 Guus Sliepen <guus@sliepen.eu.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,6 +21,102 @@
#ifndef __TINC_SYSTEM_H__
#define __TINC_SYSTEM_H__
+#include "config.h"
+
+/* Include standard headers */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdbool.h>
+#include <stdarg.h>
+#include <string.h>
+#include <ctype.h>
+#include <signal.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <termios.h>
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+/* Include system specific headers */
+
+#ifdef HAVE_SYSLOG_H
+#include <syslog.h>
+#endif
+
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
+#ifdef HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif
+
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/ioctl.h>
+#endif
+
+/* SunOS really wants sys/socket.h BEFORE net/if.h,
+ and FreeBSD wants these lines below the rest. */
+
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#ifdef HAVE_NET_IF_H
+#include <net/if.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_SYSTM_H
+#include <netinet/in_systm.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
+#ifdef HAVE_NETINET_IP_H
+#include <netinet/ip.h>
+#endif
+
+#ifdef HAVE_NETINET_TCP_H
+#include <netinet/tcp.h>
+#endif
+
+#ifdef HAVE_MINGW
+#include <windows.h>
+#include <winsock.h>
+#endif
+
+/* Include localisation support */
+
#include "gettext.h"
#ifndef HAVE_STRSIGNAL
@@ -27,7 +124,8 @@
#endif
/* Other functions */
-#include <dropin.h>
+
+#include "dropin.h"
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
--
Tinc-cvs: CVS changelog list for the tinc VPN daemon
Archive: http://mail.nl.linux.org/tinc-cvs/
Tinc site: http://tinc.nl.linux.org/
- Prev by Date:
tinc/src/linux device.c,1.1.2.17,1.1.2.18
- Next by Date:
tinc/lib avl_tree.c,1.1.2.15,1.1.2.16 dropin.c,1.1.2.14,1.1.2.15 dropin.h,1.1.2.11,1.1.2.12 fake-getaddrinfo.c,1.1.2.3,1.1.2.4 fake-getaddrinfo.h,1.1.2.2,1.1.2.3 fake-getnameinfo.c,1.1.2.6,1.1.2.7 fake-getnameinfo.h,1.1.2.2,1.1.2.3 ipv6.h,1.1.2.3,1.1.2.4 list.c,1.1.2.15,1.1.2.16 pidfile.c,1.1.1.1.4.3,1.1.1.1.4.4 utils.c,1.1.1.1.4.14,1.1.1.1.4.15 utils.h,1.1.1.1.4.15,1.1.1.1.4.16
- Prev by thread:
tinc/src/linux device.c,1.1.2.17,1.1.2.18
- Next by thread:
tinc/lib avl_tree.c,1.1.2.15,1.1.2.16 dropin.c,1.1.2.14,1.1.2.15 dropin.h,1.1.2.11,1.1.2.12 fake-getaddrinfo.c,1.1.2.3,1.1.2.4 fake-getaddrinfo.h,1.1.2.2,1.1.2.3 fake-getnameinfo.c,1.1.2.6,1.1.2.7 fake-getnameinfo.h,1.1.2.2,1.1.2.3 ipv6.h,1.1.2.3,1.1.2.4 list.c,1.1.2.15,1.1.2.16 pidfile.c,1.1.1.1.4.3,1.1.1.1.4.4 utils.c,1.1.1.1.4.14,1.1.1.1.4.15 utils.h,1.1.1.1.4.15,1.1.1.1.4.16
- Index(es):