Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/emulators/cpmemu/files/patch-low.c
16150 views
1
--- low.c.orig Wed Dec 11 22:44:43 2002
2
+++ low.c Wed Dec 11 22:44:56 2002
3
@@ -18,11 +18,10 @@
4
* space-invaders-type game working, I think it was. :-) -rjm
5
*/
6
7
+#include <sys/types.h>
8
#include "cpmemu.h"
9
#include <ctype.h>
10
#include <unistd.h>
11
-#include <sys/perm.h> /* needed for ioperm() -rjm */
12
-#include <sys/types.h>
13
#include <sys/time.h>
14
#include <signal.h>
15
#include <sys/mman.h>
16
@@ -88,10 +87,8 @@
17
18
/* get access to sound port */
19
cptr = NULL;
20
- if (ioperm(0x61, 1, 1)) {
21
hardware_access = 0; /* no access to speaker port */
22
return;
23
- }
24
25
/* install signal handler */
26
sa.sa_handler = tickerint;
27
28