summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
committerHisham Muhammad <hisham@gobolinux.org>2007-05-17 18:29:30 +0000
commit9710a4300181927c6f4b9e34e23b1588dbb07f84 (patch)
tree4ce5bf5760aa061f93bce016a2938757ccbc4736 /Process.c
parentdf20abfd672d033ac62c4d9245b8bb89fc76be94 (diff)
Fixes for /proc location, submitted by Florent Thoumie
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Process.c b/Process.c
index a10c6ae0..9bbd569e 100644
--- a/Process.c
+++ b/Process.c
@@ -28,7 +28,9 @@ in the source distribution for its full text.
// This works only with glibc 2.1+. On earlier versions
// the behavior is similar to have a hardcoded page size.
+#ifndef PAGE_SIZE
#define PAGE_SIZE ( sysconf(_SC_PAGESIZE) / 1024 )
+#endif
#define PROCESS_COMM_LEN 300

© 2014-2024 Faster IT GmbH | imprint | privacy policy