aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-22 19:30:52 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-22 19:30:52 -0400
commit50c1dd83e74b9edada2cddfce7863e06da7ab60e (patch)
tree04aadafc289d8149bed1bd5f6d980266e36efd09 /sys-boot/lilo/files
parentnet-print/cups-filters: drop c++ -pedantic. (diff)
downloadmusl-50c1dd83e74b9edada2cddfce7863e06da7ab60e.tar.gz
musl-50c1dd83e74b9edada2cddfce7863e06da7ab60e.tar.bz2
musl-50c1dd83e74b9edada2cddfce7863e06da7ab60e.zip
sys-boot/lilo: don't use O_ACCMODE nor O_NOACCESS.
Diffstat (limited to 'sys-boot/lilo/files')
-rw-r--r--sys-boot/lilo/files/lilo-24.1-remove-O_ACCMODE.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-boot/lilo/files/lilo-24.1-remove-O_ACCMODE.patch b/sys-boot/lilo/files/lilo-24.1-remove-O_ACCMODE.patch
new file mode 100644
index 0000000..98e9212
--- /dev/null
+++ b/sys-boot/lilo/files/lilo-24.1-remove-O_ACCMODE.patch
@@ -0,0 +1,17 @@
+diff -Naur lilo-24.1.orig/src/common.h lilo-24.1/src/common.h
+--- lilo-24.1.orig/src/common.h 2011-06-22 03:13:27.000000000 -0400
++++ lilo-24.1/src/common.h 2015-07-22 19:27:06.272990549 -0400
+@@ -23,12 +23,7 @@
+ # define PAGE_SIZE 4096U
+ #endif
+
+-#ifdef O_ACCMODE
+-# define O_NOACCESS O_ACCMODE
+-#else
+-/* open a file for "no access" */
+-# define O_NOACCESS 3
+-#endif
++#define O_NOACCESS O_RDONLY
+
+ /* special for LILO, bypass the actual open in dev_open( , ,-1) */
+ #define O_BYPASS -1