diff options
author | greg@kroah.com <greg@kroah.com> | 2003-10-22 23:48:55 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:06:22 -0700 |
commit | 1e959a4b05f93bf31d0603a027b50cb148ef7e90 (patch) | |
tree | 535e27110fb4f6359466cbbaf2bda0e0d00b84cc /libsysfs/sysfs_dir.c | |
parent | c8ba857171bd09a0019d3182fe989c6cf06d98d2 (diff) |
[PATCH] klibc specific tweaks
Diffstat (limited to 'libsysfs/sysfs_dir.c')
-rw-r--r-- | libsysfs/sysfs_dir.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsysfs/sysfs_dir.c b/libsysfs/sysfs_dir.c index ff2edf4615..e983d0eff4 100644 --- a/libsysfs/sysfs_dir.c +++ b/libsysfs/sysfs_dir.c @@ -266,7 +266,11 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr) sysattr->path); return -1; } +#ifdef __KLIBC__ + pgsize = 0x4000; +#else pgsize = getpagesize(); +#endif fbuf = (unsigned char *)calloc(1, pgsize+1); if (fbuf == NULL) { dprintf("calloc failed\n"); |