diff options
author | David Smith <dsmith@redhat.com> | 2010-01-14 09:39:36 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2010-01-14 09:39:36 -0600 |
commit | 71b6e9b2e680ff503eee36c5c433fe4135d54c49 (patch) | |
tree | 8a7572e0e320041f55a6942b9ac9471508a1d26c | |
parent | 95fe80a2100221faeb269c7d8319567def08295e (diff) | |
download | systemtap-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)'.
-rw-r--r-- | main.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |