pkgsrc-wip/nvramtool/patches/patch-ac
Jonathan A. Kollasch 3deb351295 forgot a file in last commit;
make it build again
2008-12-19 18:56:57 +00:00

28 lines
631 B
Text

$NetBSD: patch-ac,v 1.1 2008/12/19 18:56:57 jakllsch Exp $
--- /local/pkgsrc/work/wip/nvramtool/work/nvramtool/common.h.orig 2008-12-19 18:19:00.000000000 +0000
+++ /local/pkgsrc/work/wip/nvramtool/work/nvramtool/common.h
@@ -43,6 +43,15 @@
#include <string.h>
#include <ctype.h>
+#if defined(__NetBSD__)
+#include "pio.h"
+#define OUTB outb
+#define OUTW outw
+#define OUTL outl
+#define INB inb
+#define INW inw
+#define INL inl
+#else
#if defined(__FreeBSD__)
#include <sys/types.h>
#include <machine/cpufunc.h>
@@ -61,6 +70,7 @@
#define INW inw
#define INL inl
#endif
+#endif
#define FALSE 0
#define TRUE 1