2 * Copyright (C) 2004, 2005, 2007, 2008 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.34.18.11 2008/06/24 23:45:55 tbox Exp $ */
20 #ifndef ISC_PLATFORM_H
21 #define ISC_PLATFORM_H 1
26 ***** Platform-dependent defines.
30 * Define if the platform has <strings.h>.
32 @ISC_PLATFORM_HAVESTRINGSH@
39 * Define if this system needs the <netinet/in6.h> header file included
40 * for full IPv6 support (pretty much only UnixWare).
42 @ISC_PLATFORM_NEEDNETINETIN6H@
45 * Define if this system needs the <netinet6/in6.h> header file included
46 * to support in6_pkinfo (pretty much only BSD/OS).
48 @ISC_PLATFORM_NEEDNETINET6IN6H@
51 * If sockaddrs on this system have an sa_len field, ISC_PLATFORM_HAVESALEN
54 @ISC_PLATFORM_HAVESALEN@
57 * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
60 @ISC_PLATFORM_HAVEIPV6@
63 * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
66 @ISC_PLATFORM_NEEDIN6ADDRANY@
69 * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
72 @ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
75 * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
78 @ISC_PLATFORM_HAVEIN6PKTINFO@
81 * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
84 @ISC_PLATFORM_HAVEINADDR6@
87 * If this system has sin6_scope_id, ISC_PLATFORM_HAVESCOPEID will be defined.
89 @ISC_PLATFORM_HAVESCOPEID@
92 * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
94 @ISC_PLATFORM_NEEDNTOP@
97 * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
99 @ISC_PLATFORM_NEEDPTON@
102 * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
104 @ISC_PLATFORM_NEEDATON@
107 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
109 @ISC_PLATFORM_NEEDPORTT@
112 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
114 @ISC_PLATFORM_NEEDSTRSEP@
117 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
119 @ISC_PLATFORM_NEEDSTRLCPY@
122 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
124 @ISC_PLATFORM_NEEDSTRLCAT@
127 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
129 @ISC_PLATFORM_MSGHDRFLAVOR@
132 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
133 * prevent compiler warnings (such as with gcc on Solaris 2.8).
135 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
138 * Define on some UnixWare systems to fix erroneous definitions of various
139 * IN6_IS_ADDR_* macros.
141 @ISC_PLATFORM_FIXIN6ISADDR@
144 * Define if the system supports kqueue multiplexing
146 @ISC_PLATFORM_HAVEKQUEUE@
149 * Define if the system supports epoll multiplexing
151 @ISC_PLATFORM_HAVEEPOLL@
154 * Define if the system supports /dev/poll multiplexing
156 @ISC_PLATFORM_HAVEDEVPOLL@
163 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
166 @ISC_PLATFORM_NEEDVSNPRINTF@
169 * If this system need a modern sprintf() that returns (int) not (char*).
171 @ISC_PLATFORM_NEEDSPRINTF@
174 * The printf format string modifier to use with isc_uint64_t values.
176 @ISC_PLATFORM_QUADFORMAT@
179 * Defined if we are using threads.
181 @ISC_PLATFORM_USETHREADS@
184 * Defined if unistd.h does not cause fd_set to be delared.
186 @ISC_PLATFORM_NEEDSYSSELECTH@
189 * Type used for resource limits.
191 @ISC_PLATFORM_RLIMITTYPE@
194 * Define if your compiler supports "long long int".
196 @ISC_PLATFORM_HAVELONGLONG@
199 * Define if the system has struct lifconf which is a extended struct ifconf
202 @ISC_PLATFORM_HAVELIFCONF@
205 * Define if the system has struct if_laddrconf which is a extended struct
208 @ISC_PLATFORM_HAVEIF_LADDRCONF@
211 * Define if the system has struct if_laddrreq.
213 @ISC_PLATFORM_HAVEIF_LADDRREQ@
216 * Used to control how extern data is linked; needed for Win32 platforms.
218 @ISC_PLATFORM_USEDECLSPEC@
221 * Define if the system supports if_nametoindex.
223 @ISC_PLATFORM_HAVEIFNAMETOINDEX@
226 * Define if this system needs strtoul.
228 @ISC_PLATFORM_NEEDSTRTOUL@
231 * Define if this system needs memmove.
233 @ISC_PLATFORM_NEEDMEMMOVE@
236 * Define if the platform has <sys/un.h>.
238 @ISC_PLATFORM_HAVESYSUNH@
241 * If the "xadd" operation is available on this architecture,
242 * ISC_PLATFORM_HAVEXADD will be defined.
244 @ISC_PLATFORM_HAVEXADD@
247 * If the "atomic swap" operation is available on this architecture,
248 * ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
250 @ISC_PLATFORM_HAVEATOMICSTORE@
253 * If the "compare-and-exchange" operation is available on this architecture,
254 * ISC_PLATFORM_HAVECMPXCHG will be defined.
256 @ISC_PLATFORM_HAVECMPXCHG@
259 * Define if gcc ASM extension is available
261 @ISC_PLATFORM_USEGCCASM@
264 * Define if Tru64 style ASM syntax must be used.
266 @ISC_PLATFORM_USEOSFASM@
269 * Define if the standard __asm function must be used.
271 @ISC_PLATFORM_USESTDASM@
274 * Define if MacOS style of PPC assembly must be used.
275 * e.g. "r6", not "6", for register six.
277 @ISC_PLATFORM_USEMACASM@
279 #ifndef ISC_PLATFORM_USEDECLSPEC
280 #define LIBISC_EXTERNAL_DATA
281 #define LIBDNS_EXTERNAL_DATA
282 #define LIBISCCC_EXTERNAL_DATA
283 #define LIBISCCFG_EXTERNAL_DATA
284 #define LIBBIND9_EXTERNAL_DATA
285 #else /*! \brief ISC_PLATFORM_USEDECLSPEC */
286 #ifdef LIBISC_EXPORTS
287 #define LIBISC_EXTERNAL_DATA __declspec(dllexport)
289 #define LIBISC_EXTERNAL_DATA __declspec(dllimport)
291 #ifdef LIBDNS_EXPORTS
292 #define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
294 #define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
296 #ifdef LIBISCCC_EXPORTS
297 #define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
299 #define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
301 #ifdef LIBISCCFG_EXPORTS
302 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
304 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
306 #ifdef LIBBIND9_EXPORTS
307 #define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
309 #define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
311 #endif /*! \brief ISC_PLATFORM_USEDECLSPEC */
314 * Tell emacs to use C mode for this file.
321 #endif /* ISC_PLATFORM_H */