xref: /illumos-gate/usr/src/lib/libresolv2/include/sunw_port_before.h (revision 9525b14bcdeb5b5f6f95ab27c2f48f18bd2ec829)
1 /*
2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #ifndef	_SUNW_PORT_BEFORE_H
7 #define	_SUNW_PORT_BEFORE_H
8 
9 #ifdef SUNW_OPTIONS
10 #include <conf/sunoptions.h>
11 #endif
12 
13 /* version-specific defines */
14 #include <os_version.h>
15 #if (OS_MAJOR == 5 && OS_MINOR < 6)
16 #ifndef SOLARIS_BITTYPES
17 #define	NEED_SOLARIS_BITTYPES 1
18 #endif
19 #endif
20 
21 #if (OS_MAJOR == 5 && OS_MINOR < 5)
22 #undef HAS_PTHREADS
23 #else
24 #define	HAS_PTHREADS
25 #endif
26 
27 #if defined(HAS_PTHREADS) && defined(_REENTRANT)
28 #define DO_PTHREADS
29 #endif
30 
31 /*
32  * need these if we are using public versions of nameser.h, resolv.h, and
33  * inet.h
34  */
35 #include <sys/param.h>
36 #if (!defined(BSD)) || (BSD < 199306)
37 #include <sys/bitypes.h>
38 #else
39 #include <sys/types.h>
40 #endif
41 #include <sys/cdefs.h>
42 
43 #endif	/* _SUNW_PORT_BEFORE_H */
44