Merge from vendor branch GCC:
[dragonfly.git] / contrib / bind-9.3 / lib / bind / port_before.h.in
1 #ifndef port_before_h
2 #define port_before_h
3 #include <config.h>
4
5 struct group;           /* silence warning */
6 struct passwd;          /* silence warning */
7 struct timeval;         /* silence warning */
8 struct timezone;        /* silence warning */
9
10 #ifdef HAVE_SYS_TIMERS_H
11 #include <sys/timers.h>
12 #endif
13 #include <limits.h>
14
15
16 @WANT_IRS_GR@
17 @WANT_IRS_NIS@
18 @WANT_IRS_PW@
19
20 @BSD_COMP@
21 @USE_POLL@
22 @HAVE_MD5@
23 @SOLARIS2@
24
25 @DO_PTHREADS@
26 @GETGROUPLIST_ARGS@
27 @GETNETBYADDR_ADDR_T@
28 @SETPWENT_VOID@
29 @SETGRENT_VOID@
30
31 @NET_R_ARGS@
32 @NET_R_BAD@
33 @NET_R_COPY@
34 @NET_R_COPY_ARGS@
35 @NET_R_END_RESULT@
36 @NET_R_END_RETURN@
37 @NET_R_ENT_ARGS@
38 @NET_R_OK@
39 @NET_R_RETURN@
40 @NET_R_SET_RESULT@
41 @NET_R_SETANSWER@
42 @NET_R_SET_RETURN@
43 @NETENT_DATA@
44
45 @GROUP_R_RETURN@
46 @GROUP_R_SET_RETURN@
47 @GROUP_R_SET_RESULT@
48 @GROUP_R_END_RETURN@
49 @GROUP_R_END_RESULT@
50 @GROUP_R_ARGS@
51 @GROUP_R_ENT_ARGS@
52 @GROUP_R_OK@
53 @GROUP_R_BAD@
54
55 @HOST_R_ARGS@
56 @HOST_R_BAD@
57 @HOST_R_COPY@
58 @HOST_R_COPY_ARGS@
59 @HOST_R_END_RESULT@
60 @HOST_R_END_RETURN@
61 @HOST_R_ENT_ARGS@
62 @HOST_R_ERRNO@
63 @HOST_R_OK@
64 @HOST_R_RETURN@
65 @HOST_R_SETANSWER@
66 @HOST_R_SET_RESULT@
67 @HOST_R_SET_RETURN@
68 @HOSTENT_DATA@
69
70 @NGR_R_ARGS@
71 @NGR_R_BAD@
72 @NGR_R_COPY@
73 @NGR_R_COPY_ARGS@
74 @NGR_R_END_RESULT@
75 @NGR_R_END_RETURN@
76 @NGR_R_ENT_ARGS@
77 @NGR_R_OK@
78 @NGR_R_RETURN@
79 @NGR_R_SET_RESULT@
80 @NGR_R_SET_RETURN@
81 @NGR_R_PRIVATE@
82
83 @PROTO_R_ARGS@
84 @PROTO_R_BAD@
85 @PROTO_R_COPY@
86 @PROTO_R_COPY_ARGS@
87 @PROTO_R_END_RESULT@
88 @PROTO_R_END_RETURN@
89 @PROTO_R_ENT_ARGS@
90 @PROTO_R_OK@
91 @PROTO_R_SETANSWER@
92 @PROTO_R_RETURN@
93 @PROTO_R_SET_RESULT@
94 @PROTO_R_SET_RETURN@
95
96 @PASS_R_ARGS@
97 @PASS_R_BAD@
98 @PASS_R_COPY@
99 @PASS_R_COPY_ARGS@
100 @PASS_R_END_RESULT@
101 @PASS_R_END_RETURN@
102 @PASS_R_ENT_ARGS@
103 @PASS_R_OK@
104 @PASS_R_RETURN@
105 @PASS_R_SET_RESULT@
106 @PASS_R_SET_RETURN@
107
108 @SERV_R_ARGS@
109 @SERV_R_BAD@
110 @SERV_R_COPY@
111 @SERV_R_COPY_ARGS@
112 @SERV_R_END_RESULT@
113 @SERV_R_END_RETURN@
114 @SERV_R_ENT_ARGS@
115 @SERV_R_OK@
116 @SERV_R_SETANSWER@
117 @SERV_R_RETURN@
118 @SERV_R_SET_RESULT@
119 @SERV_R_SET_RETURN@
120
121
122 #define DE_CONST(konst, var) \
123         do { \
124                 union { const void *k; void *v; } _u; \
125                 _u.k = konst; \
126                 var = _u.v; \
127         } while (0)
128
129 #define UNUSED(x) (x) = (x)
130
131 @SOLARIS_BITTYPES@
132 @ISC_SOCKLEN_T@
133
134 #ifdef __GNUC__
135 #define ISC_FORMAT_PRINTF(fmt, args) \
136         __attribute__((__format__(__printf__, fmt, args)))
137 #else
138 #define ISC_FORMAT_PRINTF(fmt, args)
139 #endif
140
141 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
142 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
143 #include <sys/byteorder.h>
144 #endif
145
146 #endif