kiss-mfavila-small/ports/unofficial/stable/lilo/patches/musl.patch

27 lines
805 B
Diff

--- a/src/lilo.c
+++ b/src/lilo.c
@@ -182,7 +182,6 @@ extern int has_partitions_beta(dev_t dev); /* defined in geometry.c */
printf("Without");
#endif
printf(" device-mapper\n");
- printf("\nglibc version %d.%d\n", __GLIBC__, __GLIBC_MINOR__);
printf("Kernel Headers included from %d.%d.%d\n",
LINUX_VERSION_CODE>>16,
LINUX_VERSION_CODE>>8 & 255,
--- a/src/common.h 2011-06-22 03:13:27.000000000 -0400
+++ b/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