]> git.ipfire.org Git - thirdparty/squid.git/blob - compat/os/hpux.h
Merge from trunk
[thirdparty/squid.git] / compat / os / hpux.h
1 #ifndef SQUID_CONFIG_H
2 #include "config.h"
3 #endif
4
5 #ifndef SQUID_OS_HPUX_H
6 #define SQUID_OS_PHUX_H
7
8 #ifdef _SQUID_HPUX_
9
10 /****************************************************************************
11 *--------------------------------------------------------------------------*
12 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
13 *--------------------------------------------------------------------------*
14 ****************************************************************************/
15
16
17 #if !defined(HAVE_GETPAGESIZE)
18 #define HAVE_GETPAGESIZE
19 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
20 #endif
21
22 /*
23 * getrusage(...) not available on some HPUX
24 */
25 #if !HAVE_GETRUSAGE
26 #define HAVE_GETRUSAGE 1
27 #define getrusage(a, b) syscall(SYS_GETRUSAGE, a, b)
28 #endif
29
30 /*
31 * getpagesize(...) not available on HPUX
32 */
33 #if !defined(HAVE_GETPAGESIZE)
34 #define HAVE_GETPAGESIZE
35 #define getpagesize( ) sysconf(_SC_PAGE_SIZE)
36 #endif
37
38 #endif /* _SQUID_HPUX_ */
39 #endif /* SQUID_OS_HPUX_H */