mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-15 19:16:08 +07:00
[PATCH] remove a __KLIBC__ tests in libsysfs, as klibc now supports getpagesize()
This commit is contained in:
parent
0115874355
commit
bc59f0167a
@ -273,11 +273,8 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
|
|||||||
sysattr->path);
|
sysattr->path);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef __KLIBC__
|
|
||||||
pgsize = 0x1000;
|
pgsize = getpagesize();
|
||||||
#else
|
|
||||||
pgsize = sysconf(_SC_PAGESIZE);
|
|
||||||
#endif
|
|
||||||
fbuf = (unsigned char *)calloc(1, pgsize+1);
|
fbuf = (unsigned char *)calloc(1, pgsize+1);
|
||||||
if (fbuf == NULL) {
|
if (fbuf == NULL) {
|
||||||
dprintf("calloc failed\n");
|
dprintf("calloc failed\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user