freebsd-ports/comms/linrad/files/patch-hwaredriver.c
Pav Lucistnik 004697d45d Add linrad, Amateur Radio DSP utility (SDR)
PR:		ports/68873
Submitted by:	Diane Bruce <db@heceta.db.net>
2004-07-14 16:09:39 +00:00

19 lines
424 B
C

--- hwaredriver.c.orig Tue May 18 09:43:30 2004
+++ hwaredriver.c Fri Jul 9 11:26:15 2004
@@ -1,6 +1,6 @@
#include <vga.h>
-#include <sys/io.h>
+#include <machine/cpufunc.h>
#include <ctype.h>
#include "conf.h"
#include "globdef.h"
@@ -169,7 +169,7 @@
void users_open_devices(void)
{
// Get permission to write to the parallel port
-ioperm(HWARE_PORT,4,1);
+i386_set_ioperm(HWARE_PORT,4,1);
allow_parport=1;
}