Merge from vendor branch CVS:
[dragonfly.git] / contrib / bind-9.2.4rc7 / lib / isc / include / isc / platform.h.in
1 /*
2  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 1999-2001  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17
18 /* $Id: platform.h.in,v 1.24.2.2 2004/03/09 06:11:59 marka Exp $ */
19
20 #ifndef ISC_PLATFORM_H
21 #define ISC_PLATFORM_H 1
22
23 /*****
24  ***** Platform-dependent defines.
25  *****/
26
27 /***
28  *** Network.
29  ***/
30
31 /*
32  * Define if this system needs the <netinet/in6.h> header file included
33  * for full IPv6 support (pretty much only UnixWare).
34  */
35 @ISC_PLATFORM_NEEDNETINETIN6H@
36
37 /*
38  * Define if this system needs the <netinet6/in6.h> header file included
39  * to support in6_pkinfo (pretty much only BSD/OS).
40  */
41 @ISC_PLATFORM_NEEDNETINET6IN6H@
42
43 /*
44  * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
45  * will be defined.
46  */
47 @ISC_PLATFORM_HAVESALEN@
48
49 /*
50  * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
51  * will be defined.
52  */
53 @ISC_PLATFORM_HAVEIPV6@
54
55 /*
56  * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
57  * be defined.
58  */
59 @ISC_PLATFORM_NEEDIN6ADDRANY@
60
61 /*
62  * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
63  * will be defined.
64  */
65 @ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
66
67 /*
68  * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
69  * defined.
70  */
71 @ISC_PLATFORM_HAVEIN6PKTINFO@
72
73 /*
74  * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
75  * will be defined.
76  */
77 @ISC_PLATFORM_HAVEINADDR6@
78
79 /*
80  * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
81  */
82 @ISC_PLATFORM_NEEDNTOP@
83
84 /*
85  * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
86  */
87 @ISC_PLATFORM_NEEDPTON@
88
89 /*
90  * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
91  */
92 @ISC_PLATFORM_NEEDATON@
93
94 /*
95  * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
96  */
97 @ISC_PLATFORM_NEEDPORTT@
98
99 /*
100  * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
101  */
102 @ISC_PLATFORM_NEEDSTRSEP@
103
104 /*
105  * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
106  */
107 @ISC_PLATFORM_MSGHDRFLAVOR@
108
109 /*
110  * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
111  * prevent compiler warnings (such as with gcc on Solaris 2.8).
112  */
113 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
114
115 /*
116  * Define on some UnixWare systems to fix erroneous definitions of various
117  * IN6_IS_ADDR_* macros.
118  */
119 @ISC_PLATFORM_FIXIN6ISADDR@
120
121 /***
122  *** Printing.
123  ***/
124
125 /*
126  * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
127  * will be defined.
128  */
129 @ISC_PLATFORM_NEEDVSNPRINTF@
130
131 /*
132  * The printf format string modifier to use with isc_uint64_t values.
133  */
134 @ISC_PLATFORM_QUADFORMAT@
135
136 /*
137  * Defined if we are using threads.
138  */
139 @ISC_PLATFORM_USETHREADS@
140
141 /*
142  * Defined if unistd.h does not cause fd_set to be delared.
143  */
144 @ISC_PLATFORM_NEEDSYSSELECTH@
145
146 /*
147  * Type used for resource limits.
148  */
149 @ISC_PLATFORM_RLIMITTYPE@
150
151 /*
152  * Define if your compiler supports "long long int".
153  */
154 @ISC_PLATFORM_HAVELONGLONG@
155
156 /*
157  * Used to control how extern data is linked; needed for Win32 platforms.
158  */
159 @ISC_PLATFORM_USEDECLSPEC@
160
161 #ifndef ISC_PLATFORM_USEDECLSPEC
162 #define LIBISC_EXTERNAL_DATA
163 #define LIBDNS_EXTERNAL_DATA
164 #define LIBISCCC_EXTERNAL_DATA
165 #define LIBISCCFG_EXTERNAL_DATA
166 #else /* ISC_PLATFORM_USEDECLSPEC */
167 #ifdef LIBISC_EXPORTS
168 #define LIBISC_EXTERNAL_DATA __declspec(dllexport)
169 #else
170 #define LIBISC_EXTERNAL_DATA __declspec(dllimport)
171 #endif
172 #ifdef LIBDNS_EXPORTS
173 #define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
174 #else
175 #define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
176 #endif
177 #ifdef LIBISCCC_EXPORTS
178 #define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
179 #else
180 #define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
181 #endif
182 #ifdef LIBISCCFG_EXPORTS
183 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
184 #else
185 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
186 #endif
187 #endif /* ISC_PLATFORM_USEDECLSPEC */
188
189 /*
190  * Tell emacs to use C mode for this file.
191  *
192  * Local Variables:
193  * mode: c
194  * End:
195  */
196
197 #endif /* ISC_PLATFORM_H */