opnsense-ports/comms/hf/files/patch-hfkernel_cw_elbug.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
581 B
C

--- hfkernel/cw/elbug.c.orig Sun Apr 15 15:53:59 2007
+++ hfkernel/cw/elbug.c Sun Apr 15 15:56:17 2007
@@ -36,7 +36,10 @@
#ifdef __FreeBSD__
#include <machine/cpufunc.h>
#include <machine/sysarch.h>
+#include <sys/kbio.h>
#define IOPERM i386_set_ioperm
+#else
+#include <sys/kd.h> /* Linux, UnixWare */
#endif
#include <sys/time.h>
#include <sys/ioctl.h>
@@ -44,7 +47,6 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
-#include <sys/kd.h> /* Linux, UnixWare */
/*
if kd.h not found, maybe you have to take one of these 2:
<sys/vtkd.h> for OpenServer