mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
[PATCH] remove a __KLIBC__ tests in libsysfs, as klibc now supports getpagesize()
This commit is contained in:
@@ -273,11 +273,8 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
|
||||
sysattr->path);
|
||||
return -1;
|
||||
}
|
||||
#ifdef __KLIBC__
|
||||
pgsize = 0x1000;
|
||||
#else
|
||||
pgsize = sysconf(_SC_PAGESIZE);
|
||||
#endif
|
||||
|
||||
pgsize = getpagesize();
|
||||
fbuf = (unsigned char *)calloc(1, pgsize+1);
|
||||
if (fbuf == NULL) {
|
||||
dprintf("calloc failed\n");
|
||||
|
||||
Reference in New Issue
Block a user