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