]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/solaris.h
Merged from trunk.
[thirdparty/squid.git] / compat / os / solaris.h
1 #ifndef SQUID_CONFIG_H
2 #include "config.h"
3 #endif
4
5 #ifndef SQUID_OS_SOLARIS_H
6 #define SQUID_OS_SOLARIS_H
7
8 #ifdef _SQUID_SOLARIS_
9
10 /*
11 * On Solaris 9 x86, gcc may includes a "fixed" set of old system
12 * include files that is incompatible with the updated Solaris
13 * header files.
14 */
15 #if defined(i386) || defined(__i386)
16 #ifndef HAVE_PAD128_T
17 typedef union {
18 long double _q;
19 int32_t _l[4];
20 } pad128_t;
21 #endif
22 #ifndef HAVE_UPAD128_T
23 typedef union {
24 long double _q;
25 uint32_t _l[4];
26 } upad128_t;
27 #endif
28 #endif
29
30 /**
31 * prototypes for system function missing from system includes
32 */
33 SQUIDCEXTERN int getrusage(int, struct rusage *);
34
35
36 /**
37 * prototypes for system function missing from system includes
38 * on some Solaris systems.
39 */
40 SQUIDCEXTERN int getpagesize(void);
41 #if !defined(_XPG4_2) && !(defined(__EXTENSIONS__) || \
42 (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)))
43 SQUIDCEXTERN int gethostname(char *, int);
44 #endif
45
46
47
48 #endif /* _SQUID_SOLARIS_ */
49 #endif /* SQUID_OS_SOALRIS_H */