void-packages/srcpkgs/vifm/patches/page_size.patch
2015-07-14 07:44:53 +02:00

12 lines
379 B
Diff

--- src/utils/utils_nix.c.orig 2015-07-14 07:43:29.181540065 +0200
+++ src/utils/utils_nix.c 2015-07-14 07:43:48.108760240 +0200
@@ -23,6 +23,9 @@
#if defined (HAVE_LINUX_BINFMTS_H) && defined (HAVE_SYS_USER_H)
#include <linux/binfmts.h>
#include <sys/user.h>
+#ifndef PAGE_SIZE
+#define PAGE_SIZE 4096
+#endif
#endif
#include <sys/select.h> /* select() FD_SET FD_ZERO */