2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2003 Internet Software Consortium.
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.
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.24.2.1.10.11 2004/03/08 09:04:52 marka Exp $ */
20 #ifndef ISC_PLATFORM_H
21 #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 inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
97 @ISC_PLATFORM_NEEDATON@
100 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
102 @ISC_PLATFORM_NEEDPORTT@
105 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
107 @ISC_PLATFORM_NEEDSTRSEP@
110 * If the system needs strlcpy(), ISC_PLATFORM_NEEDSTRLCPY will be defined.
112 @ISC_PLATFORM_NEEDSTRLCPY@
115 * If the system needs strlcat(), ISC_PLATFORM_NEEDSTRLCAT will be defined.
117 @ISC_PLATFORM_NEEDSTRLCAT@
120 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
122 @ISC_PLATFORM_MSGHDRFLAVOR@
125 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
126 * prevent compiler warnings (such as with gcc on Solaris 2.8).
128 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
131 * Define on some UnixWare systems to fix erroneous definitions of various
132 * IN6_IS_ADDR_* macros.
134 @ISC_PLATFORM_FIXIN6ISADDR@
141 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
144 @ISC_PLATFORM_NEEDVSNPRINTF@
147 * If this system need a modern sprintf() that returns (int) not (char*).
149 @ISC_PLATFORM_NEEDSPRINTF@
152 * The printf format string modifier to use with isc_uint64_t values.
154 @ISC_PLATFORM_QUADFORMAT@
157 * Defined if we are using threads.
159 @ISC_PLATFORM_USETHREADS@
162 * Defined if unistd.h does not cause fd_set to be delared.
164 @ISC_PLATFORM_NEEDSYSSELECTH@
167 * Type used for resource limits.
169 @ISC_PLATFORM_RLIMITTYPE@
172 * Define if your compiler supports "long long int".
174 @ISC_PLATFORM_HAVELONGLONG@
177 * Define if the system has struct lifconf which is a extended struct ifconf
180 @ISC_PLATFORM_HAVELIFCONF@
183 * Define if the system has struct if_laddrconf which is a extended struct
186 @ISC_PLATFORM_HAVEIF_LADDRCONF@
189 * Define if the system has struct if_laddrreq.
191 @ISC_PLATFORM_HAVEIF_LADDRREQ@
194 * Used to control how extern data is linked; needed for Win32 platforms.
196 @ISC_PLATFORM_USEDECLSPEC@
199 * Define if the system supports if_nametoindex.
201 @ISC_PLATFORM_HAVEIFNAMETOINDEX@
204 * Define if this system needs strtoul.
206 @ISC_PLATFORM_NEEDSTRTOUL@
209 * Define if this system needs memmove.
211 @ISC_PLATFORM_NEEDMEMMOVE@
213 #ifndef ISC_PLATFORM_USEDECLSPEC
214 #define LIBISC_EXTERNAL_DATA
215 #define LIBDNS_EXTERNAL_DATA
216 #define LIBISCCC_EXTERNAL_DATA
217 #define LIBISCCFG_EXTERNAL_DATA
218 #define LIBBIND9_EXTERNAL_DATA
219 #else /* ISC_PLATFORM_USEDECLSPEC */
220 #ifdef LIBISC_EXPORTS
221 #define LIBISC_EXTERNAL_DATA __declspec(dllexport)
223 #define LIBISC_EXTERNAL_DATA __declspec(dllimport)
225 #ifdef LIBDNS_EXPORTS
226 #define LIBDNS_EXTERNAL_DATA __declspec(dllexport)
228 #define LIBDNS_EXTERNAL_DATA __declspec(dllimport)
230 #ifdef LIBISCCC_EXPORTS
231 #define LIBISCCC_EXTERNAL_DATA __declspec(dllexport)
233 #define LIBISCCC_EXTERNAL_DATA __declspec(dllimport)
235 #ifdef LIBISCCFG_EXPORTS
236 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllexport)
238 #define LIBISCCFG_EXTERNAL_DATA __declspec(dllimport)
240 #ifdef LIBBIND9_EXPORTS
241 #define LIBBIND9_EXTERNAL_DATA __declspec(dllexport)
243 #define LIBBIND9_EXTERNAL_DATA __declspec(dllimport)
245 #endif /* ISC_PLATFORM_USEDECLSPEC */
248 * Tell emacs to use C mode for this file.
255 #endif /* ISC_PLATFORM_H */