]> sourceware.org Git - systemtap.git/commitdiff
Fix rawhide compile problem.
authorDavid Smith <dsmith@redhat.com>
Thu, 14 Jan 2010 15:39:36 +0000 (09:39 -0600)
committerDavid Smith <dsmith@redhat.com>
Thu, 14 Jan 2010 15:39:36 +0000 (09:39 -0600)
* main.cxx (getmemusage): On rawhide systems, 'getpagesize()' has been
  deprecated.  Substitute 'sysconf(_SC_PAGESIZE)'.

main.cxx

index 1baced144d2bf57f0839d3a0afb814952557adff..4a84562078b5eeb32741ba7bd01c1f47a59e3ab3 100644 (file)
--- 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;
This page took 0.029854 seconds and 5 git commands to generate.