import less(1)
[unleashed/tickless.git] / usr / src / lib / libresolv2 / include / sunw_port_before.h
blob6c09153c3c33193478b8e1356a44ad9648391c61
1 /*
2 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #ifndef _SUNW_PORT_BEFORE_H
7 #define _SUNW_PORT_BEFORE_H
9 #ifdef SUNW_OPTIONS
10 #include <conf/sunoptions.h>
11 #endif
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
21 #if (OS_MAJOR == 5 && OS_MINOR < 5)
22 #undef HAS_PTHREADS
23 #else
24 #define HAS_PTHREADS
25 #endif
27 #if defined(HAS_PTHREADS)
28 #define DO_PTHREADS
29 #endif
32 * need these if we are using public versions of nameser.h, resolv.h, and
33 * inet.h
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>
43 #endif /* _SUNW_PORT_BEFORE_H */