From 743da303895b45ee3db049c75abf0772b4265746 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 6 Apr 2002 02:05:25 +0000 Subject: [PATCH] Missing include files for Unix. Was still using mswait (replaced with SLEEP). --- src/xpdev/genwrap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c index b0f0eade7a..3b1d9b5b88 100644 --- a/src/xpdev/genwrap.c +++ b/src/xpdev/genwrap.c @@ -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 */ } } -- GitLab