Add BIND 9.2.4rc7.
[dragonfly.git] / contrib / bind-9.2.4rc7 / lib / isc / include / isc / platform.h.in
blob4b9897ce3cd753073ab966ec65c41552bbf921ff
1 /*
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2001 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.2 2004/03/09 06:11:59 marka Exp $ */
20 #ifndef ISC_PLATFORM_H
21 #define ISC_PLATFORM_H 1
23 /*****
24 ***** Platform-dependent defines.
25 *****/
27 /***
28 *** Network.
29 ***/
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
45 * will be defined.
47 @ISC_PLATFORM_HAVESALEN@
50 * If this system has the IPv6 structure definitions, ISC_PLATFORM_HAVEIPV6
51 * will be defined.
53 @ISC_PLATFORM_HAVEIPV6@
56 * If this system is missing in6addr_any, ISC_PLATFORM_NEEDIN6ADDRANY will
57 * be defined.
59 @ISC_PLATFORM_NEEDIN6ADDRANY@
62 * If this system is missing in6addr_loopback, ISC_PLATFORM_NEEDIN6ADDRLOOPBACK
63 * will be defined.
65 @ISC_PLATFORM_NEEDIN6ADDRLOOPBACK@
68 * If this system has in6_pktinfo, ISC_PLATFORM_HAVEIN6PKTINFO will be
69 * defined.
71 @ISC_PLATFORM_HAVEIN6PKTINFO@
74 * If this system has in_addr6, rather than in6_addr, ISC_PLATFORM_HAVEINADDR6
75 * will be defined.
77 @ISC_PLATFORM_HAVEINADDR6@
80 * If this system needs inet_ntop(), ISC_PLATFORM_NEEDNTOP will be defined.
82 @ISC_PLATFORM_NEEDNTOP@
85 * If this system needs inet_pton(), ISC_PLATFORM_NEEDPTON will be defined.
87 @ISC_PLATFORM_NEEDPTON@
90 * If this system needs inet_aton(), ISC_PLATFORM_NEEDATON will be defined.
92 @ISC_PLATFORM_NEEDATON@
95 * If this system needs in_port_t, ISC_PLATFORM_NEEDPORTT will be defined.
97 @ISC_PLATFORM_NEEDPORTT@
100 * If the system needs strsep(), ISC_PLATFORM_NEEDSTRSEP will be defined.
102 @ISC_PLATFORM_NEEDSTRSEP@
105 * Define either ISC_PLATFORM_BSD44MSGHDR or ISC_PLATFORM_BSD43MSGHDR.
107 @ISC_PLATFORM_MSGHDRFLAVOR@
110 * Define if PTHREAD_ONCE_INIT should be surrounded by braces to
111 * prevent compiler warnings (such as with gcc on Solaris 2.8).
113 @ISC_PLATFORM_BRACEPTHREADONCEINIT@
116 * Define on some UnixWare systems to fix erroneous definitions of various
117 * IN6_IS_ADDR_* macros.
119 @ISC_PLATFORM_FIXIN6ISADDR@
121 /***
122 *** Printing.
123 ***/
126 * If this system needs vsnprintf() and snprintf(), ISC_PLATFORM_NEEDVSNPRINTF
127 * will be defined.
129 @ISC_PLATFORM_NEEDVSNPRINTF@
132 * The printf format string modifier to use with isc_uint64_t values.
134 @ISC_PLATFORM_QUADFORMAT@
137 * Defined if we are using threads.
139 @ISC_PLATFORM_USETHREADS@
142 * Defined if unistd.h does not cause fd_set to be delared.
144 @ISC_PLATFORM_NEEDSYSSELECTH@
147 * Type used for resource limits.
149 @ISC_PLATFORM_RLIMITTYPE@
152 * Define if your compiler supports "long long int".
154 @ISC_PLATFORM_HAVELONGLONG@
157 * Used to control how extern data is linked; needed for Win32 platforms.
159 @ISC_PLATFORM_USEDECLSPEC@
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 */
190 * Tell emacs to use C mode for this file.
192 * Local Variables:
193 * mode: c
194 * End:
197 #endif /* ISC_PLATFORM_H */