]>
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)
32 * prototypes for system function missing from system includes
33 * NP: sys/resource.h and sys/time.h are apparently order-dependant.
36 #include <sys/resource.h>
37 SQUIDCEXTERN
int getrusage(int, struct rusage
*);
41 * prototypes for system function missing from system includes
42 * on some Solaris systems.
44 SQUIDCEXTERN
int getpagesize(void);
45 #if !defined(_XPG4_2) && !(defined(__EXTENSIONS__) || \
46 (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)))
47 SQUIDCEXTERN
int gethostname(char *, int);
51 * SunPro CC handles extern inline as inline, PLUS extern symbols.
53 #if !defined(_SQUID_EXTERNNEW_) && defined(__SUNPRO_CC)
54 #define _SQUID_EXTERNNEW_ extern
58 * SunStudio CC does not define C++ portability API __FUNCTION__
60 #if defined(__SUNPRO_CC) && !defined(__FUNCTION__)
61 #define __FUNCTION__ ""
64 /* Exclude CPPUnit tests from the allocator restrictions. */
65 /* BSD implementation uses these still */
66 #if defined(SQUID_UNIT_TEST)
67 #define SQUID_NO_STRING_BUFFER_PROTECT 1
71 #endif /* _SQUID_SOLARIS_ */
72 #endif /* SQUID_OS_SOALRIS_H */