2 * Copyright (C) 2004-2010, 2013-2015 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 #ifndef ISC_PLATFORM_H
19 #define ISC_PLATFORM_H 1
24 ***** Platform-dependent defines.
32 * Define if this system needs the <netinet/in6.h> header file included
33 * for full IPv6 support (pretty much only UnixWare).
35 @ISC_PLATFORM_NEEDNETINETIN6H@
38 * Define if this system needs the <netinet6/in6.h> header file included
39 * to support in6_pkinfo (pretty much only BSD/OS).
41 @ISC_PLATFORM_NEEDNETINET6IN6H@
44 * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
47 @ISC_PLATFORM_HAVESALEN@
50 * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
53 @ISC_PLATFORM_HAVEIPV6@
56 * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
59 @ISC_PLATFORM_NEEDIN6ADDRANY@
62 * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
65 @ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
68 * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
71 @ISC_PLATFORM_HAVEIN6PKTINFO@
74 * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
77 @ISC_PLATFORM_HAVEINADDR6@
80 * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
82 @ISC_PLATFORM_HAVESCOPEID@
85 * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
87 @ISC_PLATFORM_NEEDNTOP@
90 * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
92 @ISC_PLATFORM_NEEDPTON@
95 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
97 @ISC_PLATFORM_NEEDPORTT@
100 * Define if the system has struct lifconf which is a extended struct ifconf
103 @ISC_PLATFORM_HAVELIFCONF@
106 * Define if the system has struct if_laddrconf which is a extended struct
109 @ISC_PLATFORM_HAVEIF_LADDRCONF@
112 * Define if the system has struct if_laddrreq.
114 @ISC_PLATFORM_HAVEIF_LADDRREQ@
117 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
119 @ISC_PLATFORM_MSGHDRFLAVOR@
122 * Define if the system supports if_nametoindex.
124 @ISC_PLATFORM_HAVEIFNAMETOINDEX@
127 * Define on some UnixWare systems to fix erroneous definitions of various
128 * IN6_IS_ADDR_* macros.
130 @ISC_PLATFORM_FIXIN6ISADDR@
133 * Define if the system has struct sockaddr_storage.
135 @ISC_PLATFORM_HAVESOCKADDRSTORAGE@
138 * Define if the system supports kqueue multiplexing
140 @ISC_PLATFORM_HAVEKQUEUE@
143 * Define if the system supports epoll multiplexing
145 @ISC_PLATFORM_HAVEEPOLL@
148 * Define if the system supports /dev/poll multiplexing
150 @ISC_PLATFORM_HAVEDEVPOLL@
153 * Define if we want to log backtrace
155 @ISC_PLATFORM_USEBACKTRACE@
162 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
165 @ISC_PLATFORM_NEEDVSNPRINTF@
168 * If this system need a modern sprintf() that returns (int) not (char*).
170 @ISC_PLATFORM_NEEDSPRINTF@
173 * If this system need a modern printf() that format size %z (size_t).
175 @ISC_PLATFORM_NEEDPRINTF@
178 * If this system need a modern fprintf() that format size %z (size_t).
180 @ISC_PLATFORM_NEEDFPRINTF@
183 * The printf format string modifier to use with isc_uint64_t values.
185 @ISC_PLATFORM_QUADFORMAT@
188 *** String functions.
191 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
193 @ISC_PLATFORM_NEEDSTRSEP@
196 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
198 @ISC_PLATFORM_NEEDSTRLCPY@
201 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
203 @ISC_PLATFORM_NEEDSTRLCAT@
206 * Define if this system needs strtoul.
208 @ISC_PLATFORM_NEEDSTRTOUL@
211 * Define if this system needs memmove.
213 @ISC_PLATFORM_NEEDMEMMOVE@
216 * Define if this system needs strcasestr.
218 @ISC_PLATFORM_NEEDSTRCASESTR@
225 * Defined if we are using threads.
227 @ISC_PLATFORM_USETHREADS@
230 * Defined if unistd.h does not cause fd_set to be delared.
232 @ISC_PLATFORM_NEEDSYSSELECTH@
235 * Defined to <gssapi.h> or <gssapi/gssapi.h> for how to include
238 @ISC_PLATFORM_GSSAPIHEADER@
241 * Defined to <gssapi_krb5.h> or <gssapi/gssapi_krb5.h> for how to
242 * include the GSSAPI KRB5 header.
244 @ISC_PLATFORM_GSSAPI_KRB5_HEADER@
247 * Defined to <krb5.h> or <krb5/krb5.h> for how to include
250 @ISC_PLATFORM_KRB5HEADER@
253 * Type used for resource limits.
255 @ISC_PLATFORM_RLIMITTYPE@
258 * Define if your compiler supports "long long int".
260 @ISC_PLATFORM_HAVELONGLONG@
263 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
264 * prevent compiler warnings (such as with gcc on Solaris 2.8).
266 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
269 * Used to control how extern data is linked; needed for Win32 platforms.
271 @ISC_PLATFORM_USEDECLSPEC@
274 * Define if the platform has <sys/un.h>.
276 @ISC_PLATFORM_HAVESYSUNH@
279 * If the "xadd" operation is available on this architecture,
280 * ISC_PLATFORM_HAVEXADD will be defined.
282 @ISC_PLATFORM_HAVEXADD@
285 * If the "xaddq" operation (64bit xadd) is available on this architecture,
286 * ISC_PLATFORM_HAVEXADDQ will be defined.
288 @ISC_PLATFORM_HAVEXADDQ@
291 * If the 32-bit "atomic swap" operation is available on this
292 * architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
294 @ISC_PLATFORM_HAVEATOMICSTORE@
297 * If the 64-bit "atomic swap" operation is available on this
298 * architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
300 @ISC_PLATFORM_HAVEATOMICSTOREQ@
303 * If the "compare-and-exchange" operation is available on this architecture,
304 * ISC_PLATFORM_HAVECMPXCHG will be defined.
306 @ISC_PLATFORM_HAVECMPXCHG@
309 * Define if gcc ASM extension is available
311 @ISC_PLATFORM_USEGCCASM@
314 * Define if Tru64 style ASM syntax must be used.
316 @ISC_PLATFORM_USEOSFASM@
319 * Define if the standard __asm function must be used.
321 @ISC_PLATFORM_USESTDASM@
324 * Define if the platform has <strings.h>.
326 @ISC_PLATFORM_HAVESTRINGSH@
329 * Define if the hash functions must be provided by OpenSSL.
331 @ISC_PLATFORM_OPENSSLHASH@
334 * Defines for the noreturn attribute.
336 @ISC_PLATFORM_NORETURN_PRE@
337 @ISC_PLATFORM_NORETURN_POST@
340 *** Windows dll support.
344 * Define if MacOS style of PPC assembly must be used.
345 * e.g. "r6", not "6", for register six.
347 @ISC_PLATFORM_USEMACASM@
349 #ifndef ISC_PLATFORM_USEDECLSPEC
350 #define LIBISC_EXTERNAL_DATA
351 #define LIBDNS_EXTERNAL_DATA
352 #define LIBISCCC_EXTERNAL_DATA
353 #define LIBISCCFG_EXTERNAL_DATA
354 #define LIBBIND9_EXTERNAL_DATA
355 #define LIBTESTS_EXTERNAL_DATA
356 #else /*! \brief ISC_PLATFORM_USEDECLSPEC */
357 #ifdef LIBISC_EXPORTS
358 #define LIBISC_EXTERNAL_DATA __declspec(dllexport)
360 #define LIBISC_EXTERNAL_DATA __declspec(dllimport)
362 #ifdef LIBDNS_EXPORTS
363 #define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
365 #define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
367 #ifdef LIBISCCC_EXPORTS
368 #define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
370 #define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
372 #ifdef LIBISCCFG_EXPORTS
373 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
375 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
377 #ifdef LIBBIND9_EXPORTS
378 #define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
380 #define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
382 #ifdef LIBTESTS_EXPORTS
383 #define LIBTESTS_EXTERNAL_DATA __declspec(dllexport)
385 #define LIBTESTS_EXTERNAL_DATA __declspec(dllimport)
387 #endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
390 * Tell emacs to use C mode for this file.
397 #endif /* ISC_PLATFORM_H */