summaryrefslogtreecommitdiff
path: root/sysutils/afbinit/patches
diff options
context:
space:
mode:
authormartin <martin>2005-06-02 15:10:52 +0000
committermartin <martin>2005-06-02 15:10:52 +0000
commitdc078990cb983dafb676c0cb63db073d540790f7 (patch)
tree96e89678daa25efcc0b0e1ff3410e12ea9a208ef /sysutils/afbinit/patches
parentdf3339082c7dd6216eb1203df1ade6f264bccbac (diff)
downloadpkgsrc-dc078990cb983dafb676c0cb63db073d540790f7.tar.gz
Import afbinit, a tool to download microcode to Sun AFB graphic cards.
Diffstat (limited to 'sysutils/afbinit/patches')
-rw-r--r--sysutils/afbinit/patches/patch-aa21
1 files changed, 21 insertions, 0 deletions
diff --git a/sysutils/afbinit/patches/patch-aa b/sysutils/afbinit/patches/patch-aa
new file mode 100644
index 00000000000..25f8de8bc3f
--- /dev/null
+++ b/sysutils/afbinit/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/06/02 15:10:52 martin Exp $
+
+--- afbinit.c.orig 2001-11-30 03:04:21.000000000 +0100
++++ afbinit.c 2005-06-02 15:22:11.000000000 +0200
+@@ -13,6 +13,7 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ /* Define this to debug the microcode loading procedure. */
+ #undef DEBUG_UCODE_LOAD
+@@ -193,7 +194,7 @@
+ struct afb_ucode_header {
+ char ident[8];
+ unsigned int ucode_words;
+- unsigned int __unused[2];
++ unsigned int unused[2];
+ } ucheader;
+ unsigned int *ucode;
+ int afb_fd, ucode_fd, ucode_version;