From afbfe9e2d1b54a3d9d4b1e64f8911567c66d7be7 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 3 Sep 2003 22:20:47 +0000
Subject: [PATCH] NetBSD and OpenBSD can't use the Linux/FreeBSD console ioctl
 to make noise

---
 src/xpdev/genwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c
index c805b63ad8..0f69abe77e 100644
--- a/src/xpdev/genwrap.c
+++ b/src/xpdev/genwrap.c
@@ -157,7 +157,7 @@ void DLLCALL unix_beep(int freq, int dur)
 	}
 #endif
 
-#if !defined(__GNU__) && !defined(__QNX__)
+#if !defined(__GNU__) && !defined(__QNX__) && !defined(__OpenBSD__) && !defined(NetBSD)
 	if(console_fd == -1) 
   		console_fd = open("/dev/console", O_NOCTTY);
 	
-- 
GitLab