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