diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-30 14:17:35 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-30 14:17:35 +0000 |
commit | 363e9b282b6bd3908c2a2b56c894d785cf2fb94d (patch) | |
tree | 825865c522e3eef6c98253eb4fdc7cef1d175980 /app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch | |
parent | a21eae5570ee23ff259ccee6adc402fa27578a83 (diff) |
gentoo auto-resync : 30:12:2022 - 14:17:35
Diffstat (limited to 'app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch')
-rw-r--r-- | app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch b/app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch index 435977ac9c0b..a92936f008cd 100644 --- a/app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch +++ b/app-admin/coreboot-utils/files/coreboot-utils-4.18-musl.patch @@ -34,22 +34,17 @@ diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c index ed18c13e62..fa2c6ce35d 100644 --- a/util/superiotool/superiotool.c +++ b/util/superiotool/superiotool.c -@@ -320,6 +320,7 @@ int main(int argc, char *argv[]) - } - } - -+#if 0 - #if defined(__FreeBSD__) +@@ -324,8 +324,8 @@ if ((io_fd = open("/dev/io", O_RDWR)) < 0) { perror("/dev/io"); -@@ -330,6 +331,7 @@ int main(int argc, char *argv[]) + #else +- if (iopl(3) < 0) { +- perror("iopl"); ++ if (ioperm(0, 6000, 1) < 0) { ++ perror("ioperm"); + #endif printf("Superiotool must be run as root.\n"); exit(1); - } -+#endif - - print_version(); - diff --git a/util/superiotool/superiotool.h b/util/superiotool/superiotool.h index a621ae5274..d5f44fece4 100644 --- a/util/superiotool/superiotool.h |