]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/solaris.h
5 #ifndef SQUID_OS_SOLARIS_H
6 #define SQUID_OS_SOLARIS_H
12 * On Solaris 9 x86, gcc may includes a "fixed" set of old system
13 * include files that is incompatible with the updated Solaris
16 #if defined(i386) || defined(__i386)
23 #ifndef HAVE_UPAD128_T
32 * prototypes for system function missing from system includes
34 #include <sys/resource.h>
35 SQUIDCEXTERN
int getrusage(int, struct rusage
*);
39 * prototypes for system function missing from system includes
40 * on some Solaris systems.
42 SQUIDCEXTERN
int getpagesize(void);
43 #if !defined(_XPG4_2) && !(defined(__EXTENSIONS__) || \
44 (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)))
45 SQUIDCEXTERN
int gethostname(char *, int);
49 * SunPro CC handles extern inline as inline, PLUS extern symbols.
51 #if !defined(_SQUID_EXTERNNEW_) && defined(__SUNPRO_CC)
52 #define _SQUID_EXTERNNEW_ extern
56 * SunStudio CC does not define C++ portability API __FUNCTION__
58 #if defined(__SUNPRO_CC) && !defined(__FUNCTION__)
59 #define __FUNCTION__ __func__
62 #endif /* _SQUID_SOLARIS_ */
63 #endif /* SQUID_OS_SOALRIS_H */