Skip to content
Snippets Groups Projects
Commit b7f7542a authored by rswindell's avatar rswindell
Browse files

Deuce's mod: support for OpenBSD.

parent a7d9d1c3
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@
/* KIOCSOUND */
#if defined(__FreeBSD__)
#include <sys/kbio.h>
#else
#elif defined(__linux__)
#include <sys/kd.h>
#endif
#endif /* __unix__ */
......@@ -120,6 +120,7 @@ void DLLCALL unix_beep(int freq, int dur)
{
static int console_fd=-1;
#if !defined(__OpenBSD__)
if(console_fd == -1)
console_fd = open("/dev/console", O_NOCTTY);
......@@ -128,6 +129,7 @@ void DLLCALL unix_beep(int freq, int dur)
SLEEP(dur);
ioctl(console_fd, KIOCSOUND, 0); /* turn off tone */
}
#endif
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment