freebsd-ports/audio/krio/files/patch-ab
Steve Price cb5230eccd Add support for the Alpha and create a directory on install so this packages
on machines with a clean ${PREFIX} directory.
2000-02-20 20:48:58 +00:00

16 lines
445 B
Text

--- rio107/rio.cpp.orig Fri Feb 18 11:07:32 2000
+++ rio107/rio.cpp Fri Feb 18 11:08:13 2000
@@ -79,6 +79,13 @@
#include <fcntl.h>
#include <unistd.h>
#include <machine/cpufunc.h>
+ #if defined(__alpha__)
+ #include <sys/types.h>
+ extern "C" {
+ u_int8_t inb(u_int32_t);
+ void outb(u_int32_t, u_int8_t);
+ }
+ #endif
#define OUTPORT(p,v) outb( p, v )
#define INPORT(p) inb( p )
#define CLOCK_SECOND CLOCKS_PER_SEC