~ubuntu-branches/ubuntu/maverick/squid3/maverick-updates

« back to all changes in this revision

Viewing changes to compat/os/hpux.h

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2010-07-07 15:21:06 UTC
  • mfrom: (20.3.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100707152106-ozv23qjzn7q1jpaj
Tags: 3.1.5-2
* debian/control
  - Added build dependency on libltdl-dev fixing FTBFS on most archs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#endif /* _SQUID_HPUX_ */
 
32
#endif /* SQUID_OS_HPUX_H */