$OpenBSD: patch-simpleclient_iaxcomm_ringer_cc,v 1.1 2010/06/18 17:32:21 sebastia Exp $ --- simpleclient/iaxcomm/ringer.cc.orig Sun Jun 6 14:01:31 2010 +++ simpleclient/iaxcomm/ringer.cc Sun Jun 6 14:03:06 2010 @@ -58,14 +58,18 @@ #ifdef __WXGTK__ #include #include + #ifdef __OpenBSD__ + #include + #else #include + #endif static void Beep(int freq, int dur) { int fd; int arg; - fd = open("/dev/tty0", O_RDONLY); + fd = open("/dev/tty", O_RDONLY); arg = (dur<<16)+(1193180/freq); ioctl(fd,KDMKTONE,arg); }