2 * Copyright (C) 2004-2010 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2003 Internet Software Consortium.
5 * Permission to use, copy, modify, and/or 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.
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.
18 /* $Id: platform.h.in,v 1.56 2010/12/18 01:56:23 each Exp $ */
20 #ifndef ISC_PLATFORM_H
21 #define ISC_PLATFORM_H 1
26 ***** Platform-dependent defines.
34 * Define if this system needs the <netinet/in6.h> header file included
35 * for full IPv6 support (pretty much only UnixWare).
37 @ISC_PLATFORM_NEEDNETINETIN6H@
40 * Define if this system needs the <netinet6/in6.h> header file included
41 * to support in6_pkinfo (pretty much only BSD/OS).
43 @ISC_PLATFORM_NEEDNETINET6IN6H@
46 * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
49 @ISC_PLATFORM_HAVESALEN@
52 * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
55 @ISC_PLATFORM_HAVEIPV6@
58 * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
61 @ISC_PLATFORM_NEEDIN6ADDRANY@
64 * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
67 @ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
70 * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
73 @ISC_PLATFORM_HAVEIN6PKTINFO@
76 * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
79 @ISC_PLATFORM_HAVEINADDR6@
82 * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
84 @ISC_PLATFORM_HAVESCOPEID@
87 * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
89 @ISC_PLATFORM_NEEDNTOP@
92 * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
94 @ISC_PLATFORM_NEEDPTON@
97 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
99 @ISC_PLATFORM_NEEDPORTT@
102 * Define if the system has struct lifconf which is a extended struct ifconf
105 @ISC_PLATFORM_HAVELIFCONF@
108 * Define if the system has struct if_laddrconf which is a extended struct
111 @ISC_PLATFORM_HAVEIF_LADDRCONF@
114 * Define if the system has struct if_laddrreq.
116 @ISC_PLATFORM_HAVEIF_LADDRREQ@
119 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
121 @ISC_PLATFORM_MSGHDRFLAVOR@
124 * Define if the system supports if_nametoindex.
126 @ISC_PLATFORM_HAVEIFNAMETOINDEX@
129 * Define on some UnixWare systems to fix erroneous definitions of various
130 * IN6_IS_ADDR_* macros.
132 @ISC_PLATFORM_FIXIN6ISADDR@
135 * Define if the system supports kqueue multiplexing
137 @ISC_PLATFORM_HAVEKQUEUE@
140 * Define if the system supports epoll multiplexing
142 @ISC_PLATFORM_HAVEEPOLL@
145 * Define if the system supports /dev/poll multiplexing
147 @ISC_PLATFORM_HAVEDEVPOLL@
150 * Define if we want to log backtrace
152 @ISC_PLATFORM_USEBACKTRACE@
159 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
162 @ISC_PLATFORM_NEEDVSNPRINTF@
165 * If this system need a modern sprintf() that returns (int) not (char*).
167 @ISC_PLATFORM_NEEDSPRINTF@
170 * The printf format string modifier to use with isc_uint64_t values.
172 @ISC_PLATFORM_QUADFORMAT@
175 *** String functions.
178 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
180 @ISC_PLATFORM_NEEDSTRSEP@
183 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
185 @ISC_PLATFORM_NEEDSTRLCPY@
188 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
190 @ISC_PLATFORM_NEEDSTRLCAT@
193 * Define if this system needs strtoul.
195 @ISC_PLATFORM_NEEDSTRTOUL@
198 * Define if this system needs memmove.
200 @ISC_PLATFORM_NEEDMEMMOVE@
207 * Defined if we are using threads.
209 @ISC_PLATFORM_USETHREADS@
212 * Defined if unistd.h does not cause fd_set to be delared.
214 @ISC_PLATFORM_NEEDSYSSELECTH@
217 * Defined to <gssapi.h> or <gssapi/gssapi.h> for how to include
220 @ISC_PLATFORM_GSSAPIHEADER@
223 * Defined to <gssapi_krb5.h> or <gssapi/gssapi_krb5.h> for how to
224 * include the GSSAPI KRB5 header.
226 @ISC_PLATFORM_GSSAPI_KRB5_HEADER@
229 * Defined to <krb5.h> or <krb5/krb5.h> for how to include
232 @ISC_PLATFORM_KRB5HEADER@
235 * Type used for resource limits.
237 @ISC_PLATFORM_RLIMITTYPE@
240 * Define if your compiler supports "long long int".
242 @ISC_PLATFORM_HAVELONGLONG@
245 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
246 * prevent compiler warnings (such as with gcc on Solaris 2.8).
248 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
251 * Used to control how extern data is linked; needed for Win32 platforms.
253 @ISC_PLATFORM_USEDECLSPEC@
256 * Define if the platform has <sys/un.h>.
258 @ISC_PLATFORM_HAVESYSUNH@
261 * If the "xadd" operation is available on this architecture,
262 * ISC_PLATFORM_HAVEXADD will be defined.
264 @ISC_PLATFORM_HAVEXADD@
267 * If the "xaddq" operation (64bit xadd) is available on this architecture,
268 * ISC_PLATFORM_HAVEXADDQ will be defined.
270 @ISC_PLATFORM_HAVEXADDQ@
273 * If the "atomic swap" operation is available on this architecture,
274 * ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
276 @ISC_PLATFORM_HAVEATOMICSTORE@
279 * If the "compare-and-exchange" operation is available on this architecture,
280 * ISC_PLATFORM_HAVECMPXCHG will be defined.
282 @ISC_PLATFORM_HAVECMPXCHG@
285 * Define if gcc ASM extension is available
287 @ISC_PLATFORM_USEGCCASM@
290 * Define if Tru64 style ASM syntax must be used.
292 @ISC_PLATFORM_USEOSFASM@
295 * Define if the standard __asm function must be used.
297 @ISC_PLATFORM_USESTDASM@
300 * Define if the platform has <strings.h>.
302 @ISC_PLATFORM_HAVESTRINGSH@
305 * Define if the hash functions must be provided by OpenSSL.
307 @ISC_PLATFORM_OPENSSLHASH@
310 * Defines for the noreturn attribute.
312 @ISC_PLATFORM_NORETURN_PRE@
313 @ISC_PLATFORM_NORETURN_POST@
316 *** Windows dll support.
320 * Define if MacOS style of PPC assembly must be used.
321 * e.g. "r6", not "6", for register six.
323 @ISC_PLATFORM_USEMACASM@
325 #ifndef ISC_PLATFORM_USEDECLSPEC
326 #define LIBISC_EXTERNAL_DATA
327 #define LIBDNS_EXTERNAL_DATA
328 #define LIBISCCC_EXTERNAL_DATA
329 #define LIBISCCFG_EXTERNAL_DATA
330 #define LIBBIND9_EXTERNAL_DATA
331 #else /*! \brief ISC_PLATFORM_USEDECLSPEC */
332 #ifdef LIBISC_EXPORTS
333 #define LIBISC_EXTERNAL_DATA __declspec(dllexport)
335 #define LIBISC_EXTERNAL_DATA __declspec(dllimport)
337 #ifdef LIBDNS_EXPORTS
338 #define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
340 #define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
342 #ifdef LIBISCCC_EXPORTS
343 #define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
345 #define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
347 #ifdef LIBISCCFG_EXPORTS
348 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
350 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
352 #ifdef LIBBIND9_EXPORTS
353 #define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
355 #define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
357 #endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
360 * Tell emacs to use C mode for this file.
367 #endif /* ISC_PLATFORM_H */