nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /* source: xioconfig.h */
2 /* Copyright Gerhard Rieger */
3 /* Published under the GNU General Public License V.2, see file COPYING */
4  
5 #ifndef __xioconfig_h_included
6 #define __xioconfig_h_included 1
7  
8 /* ensure some dependencies between configure WITH defines. must be included
9 past config.h */
10  
11 #if WITH_STDIO || WITH_FDNUM
12 # define WITH_FD 1
13 #endif
14  
15 #if WITH_FILE || WITH_GOPEN || WITH_CREAT || WITH_PIPE
16 # define WITH_OPEN 1
17 #endif
18  
19 #if WITH_OPEN || WITH_PIPE || WITH_UNIX || WITH_PTY
20 # define WITH_NAMED 1
21 #endif
22  
23 #if WITH_TERMIOS || WITH_PTY || WITH_READLINE
24 # define _WITH_TERMIOS 1
25 #endif
26  
27 #if WITH_SOCKS4A
28 # define _WITH_SOCKS4 1
29 #endif
30  
31 #if WITH_SOCKS4 || WITH_SOCKS5 || WITH_PROXY
32 # define _WITH_TCP 1
33 # define _WITH_IP4 1 /* currently this socks implementation does not work
34 with IP6 */
35 #endif
36  
37 #if 0
38 #if !defined(HAVE_NETINET_IP6_H)
39 # undef WITH_IP6
40 #endif
41 #endif
42  
43 #if WITH_OPENSSL
44 # define _WITH_TCP 1
45 # define _WITH_IP4 1
46 # if WITH_IP6
47 # define _WITH_IP6 1
48 # endif
49 #endif
50  
51 #if !WITH_IP4 && !WITH_IP6
52 # if WITH_TCP || WITH_UDP || WITH_RAWIP
53 # define WITH_IP4 1
54 # endif
55 #endif
56  
57 #if WITH_UNIX || HAVE_SYS_UN_H
58 # define _WITH_UNIX 1
59 #endif
60  
61 #if _WITH_UNIX || WITH_IP4 || WITH_IP6 || WITH_SOCKS4 || WITH_RAWIP || WITH_GENERICSOCKET
62 # define WITH_SOCKET 1
63 #else
64 # undef WITH_SOCKET
65 #endif
66  
67 #if !WITH_SOCKET
68 # undef WITH_LISTEN
69 #endif
70  
71 #if !WITH_LISTEN
72 # undef WITH_LIBWRAP
73 #endif
74  
75 #if WITH_GENERICSOCKET || WITH_TUN
76 # define _WITH_SOCKET 1
77 #endif
78  
79 #if WITH_TCP
80 # define _WITH_TCP 1
81 # define _WITH_IP4 1
82 # if WITH_IP6
83 # define _WITH_IP6 1
84 # endif
85 #endif
86  
87 #if WITH_IP4 || WITH_TUN
88 # define _WITH_IP4 1
89 #endif
90  
91 #if WITH_IP6 || WITH_TUN
92 # define _WITH_IP6 1
93 #endif
94  
95 #if WITH_NAMED || WITH_TUN
96 # define _WITH_NAMED 1
97 #endif
98  
99 #if WITH_FILE || WITH_TUN
100 # define _WITH_FILE 1
101 #endif
102  
103  
104 #if HAVE_DEV_PTMX && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PROTOTYPE_LIB_ptsname
105 #else
106 # undef HAVE_DEV_PTMX
107 #endif
108  
109 #if HAVE_DEV_PTC /* && HAVE_GRANTPT && HAVE_UNLOCKPT && HAVE_PROTOTYPE_LIB_ptsname */
110 #else
111 # undef HAVE_DEV_PTC
112 #endif
113  
114  
115 /* MacOS does not seem to have any pty implementation */
116 #if WITH_PTY && (HAVE_DEV_PTC || HAVE_DEV_PTMX || HAVE_OPENPTY)
117 # define HAVE_PTY 1
118 #else
119 # undef HAVE_PTY
120 #endif
121  
122 #ifndef HAVE_TYPE_SOCKLEN
123 typedef int socklen_t;
124 #endif /* !defined(HAVE_TYPE_SOCKLEN) */
125  
126 #ifndef HAVE_TYPE_UINT8
127 typedef unsigned char uint8_t;
128 #endif
129  
130 #ifndef HAVE_TYPE_UINT16
131 typedef unsigned short uint16_t;
132 #endif
133  
134 #ifndef HAVE_TYPE_UINT32
135 typedef unsigned int uint32_t;
136 #endif
137  
138 #ifndef HAVE_TYPE_SA_FAMILY_T
139 typedef uint16_t sa_family_t;
140 #endif
141  
142 #endif /* !defined(__xioconfig_h_included) */