From 3d97786f09492cb62c69ccb7947f9fca280e0809 Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 27 May 2021 19:13:04 +0300 Subject: [PATCH] udev_device.c: drop PAGESIZE glibc violates POSIX and does not define it. --- udev_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev_device.c b/udev_device.c index 1778487..de86c88 100644 --- a/udev_device.c +++ b/udev_device.c @@ -222,7 +222,7 @@ const char *udev_device_get_property_value(struct udev_device *udev_device, cons const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr) { struct udev_list_entry *list_entry; - char data[PAGESIZE], path[PATH_MAX]; + char data[4096], path[PATH_MAX]; struct stat st; size_t len; FILE *file;