1 /* source: xioconfig.h */
2 /* Copyright Gerhard Rieger 2001-2008 */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __xioconfig_h_included
6 #define __xioconfig_h_included 1
8 /* ensure some dependencies between configure WITH defines. must be included
11 #if WITH_STDIO || WITH_FDNUM
15 #if WITH_FILE || WITH_GOPEN || WITH_CREAT || WITH_PIPE
19 #if WITH_OPEN || WITH_PIPE || WITH_UNIX || WITH_PTY
23 #if WITH_TERMIOS || WITH_PTY || WITH_READLINE
24 # define _WITH_TERMIOS 1
28 # define WITH_SOCKS4 1
31 #if WITH_SOCKS4 || WITH_PROXY
33 # define WITH_IP4 1 /* currently this socks implementation does not work
43 # if !defined(HAVE_NETINET_IP6_H)
48 #if !WITH_IP4 && !WITH_IP6
49 # if WITH_TCP || WITH_UDP || WITH_RAWIP
54 #if WITH_UNIX || WITH_IP4 || WITH_IP6 || WITH_SOCKS4 || WITH_RAWIP || WITH_GENERICSOCKET
55 # define _WITH_SOCKET 1
68 #if WITH_GENERICSOCKET || WITH_TUN
69 # define _WITH_SOCKET 1
72 #if WITH_IP4 || WITH_TUN
76 #if WITH_IP6 || WITH_TUN
80 #if WITH_NAMED || WITH_TUN
81 # define _WITH_NAMED 1
84 #if WITH_FILE || WITH_TUN
89 #if HAVE_DEV_PTMX && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PTSNAME
94 #if HAVE_DEV_PTC /* && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PTSNAME */
100 /* MacOS does not seem to have any pty implementation */
101 #if WITH_PTY && (HAVE_DEV_PTC || HAVE_DEV_PTMX || HAVE_OPENPTY)
107 #ifndef HAVE_TYPE_SOCKLEN
108 typedef int socklen_t
;
109 #endif /* !defined(HAVE_TYPE_SOCKLEN) */
111 #ifndef HAVE_TYPE_UINT8
112 typedef unsigned char uint8_t;
115 #ifndef HAVE_TYPE_UINT16
116 typedef unsigned short uint16_t;
119 #ifndef HAVE_TYPE_UINT32
120 typedef unsigned int uint32_t;
123 #ifndef HAVE_TYPE_SA_FAMILY_T
124 typedef uint16_t sa_family_t
;
127 #endif /* !defined(__xioconfig_h_included) */