summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2010-01-14 09:39:36 -0600
committerDavid Smith <dsmith@redhat.com>2010-01-14 09:39:36 -0600
commit71b6e9b2e680ff503eee36c5c433fe4135d54c49 (patch)
tree8a7572e0e320041f55a6942b9ac9471508a1d26c /main.cxx
parent95fe80a2100221faeb269c7d8319567def08295e (diff)
downloadsystemtap-steved-71b6e9b2e680ff503eee36c5c433fe4135d54c49.tar.gz
systemtap-steved-71b6e9b2e680ff503eee36c5c433fe4135d54c49.tar.xz
systemtap-steved-71b6e9b2e680ff503eee36c5c433fe4135d54c49.zip
Fix rawhide compile problem.
* main.cxx (getmemusage): On rawhide systems, 'getpagesize()' has been deprecated. Substitute 'sysconf(_SC_PAGESIZE)'.
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cxx b/main.cxx
index 1baced14..4a845620 100644
--- a/main.cxx
+++ b/main.cxx
@@ -418,7 +418,7 @@ void parse_kernel_config (systemtap_session &s)
static string
getmemusage ()
{
- static int sz = getpagesize();
+ static long sz = sysconf(_SC_PAGESIZE);
long pages, kb;
ostringstream oss;