pkgsrc-wip/nvramtool/patches/patch-ab
Jonathan A. Kollasch fe5b1ca9bc make it build again
2008-12-19 18:51:18 +00:00

25 lines
666 B
Text

$NetBSD: patch-ab,v 1.2 2008/12/19 18:51:18 jakllsch Exp $
--- /local/pkgsrc/work/wip/nvramtool/work/nvramtool/cmos_lowlevel.c.orig 2008-12-19 18:41:26.000000000 +0000
+++ /local/pkgsrc/work/wip/nvramtool/work/nvramtool/cmos_lowlevel.c
@@ -33,6 +33,11 @@
#include <unistd.h>
#endif
+#if defined(__NetBSD__)
+#include <sys/types.h>
+#include <machine/sysarch.h>
+#endif
+
#include "common.h"
#include "cmos_lowlevel.h"
@@ -281,7 +286,7 @@ void set_iopl (int level)
}
}
#else
- if (iopl(level))
+ if (i386_iopl(level))
{ fprintf(stderr,
"%s: iopl() system call failed. You must be root to do "
"this.\n",