mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-15 19:16:08 +07:00
[PATCH] change pgsize
In udev-009 and previous releases, for klibc compatibility, the pgsize var in sysfs_read_attribute() (file sysfs_dir.c under libsysfs) is handcoded to 0x4000. Should it not be 4096 bytes (0x1000 in hex) instead of 0x4000 (16k bytes)?
This commit is contained in:
parent
01ff79f589
commit
f4f3939a6c
@ -274,7 +274,7 @@ int sysfs_read_attribute(struct sysfs_attribute *sysattr)
|
||||
return -1;
|
||||
}
|
||||
#ifdef __KLIBC__
|
||||
pgsize = 0x4000;
|
||||
pgsize = 0x1000;
|
||||
#else
|
||||
pgsize = sysconf(_SC_PAGESIZE);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user