Commit 743da303 authored by rswindell's avatar rswindell
Browse files

Missing include files for Unix.

Was still using mswait (replaced with SLEEP).
parent 71f8fda9
......@@ -36,6 +36,14 @@
****************************************************************************/
#include <string.h> /* strlen() */
#include <stdlib.h> /* RAND_MAX */
#include <fcntl.h> /* O_NOCTTY */
#ifndef __FreeBSD__
#include <sys/kd.h> /* KIOCSOUND */
#endif
#ifdef __FreeBSD__
#include <sys/kbio.h>
#endif
#include "genwrap.h" /* Verify prototypes */
......@@ -94,7 +102,7 @@ void DLLCALL unix_beep(int freq, int dur)
if(console_fd != -1) {
ioctl(console_fd, KIOCSOUND, (int) (1193180 / freq));
mswait(dur);
SLEEP(dur);
ioctl(console_fd, KIOCSOUND, 0); /* turn off tone */
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment