blob: d7731d815b663023e2dd7ded497b7d1af599c74e [file] [log] [blame]
diff -aruN a/beep.c b/beep.c
--- a/beep.c 2010-08-03 06:57:27.000000000 -0700
+++ b/beep.c 2010-11-09 17:17:01.000000000 -0800
@@ -44,8 +44,8 @@
resets the counter to the original value, and starts over. The end
result of this is a tone at approximately the desired frequency. :)
*/
-#ifndef CLOCK_TICK_RATE
-#define CLOCK_TICK_RATE 1193180
+#ifndef PIT_TICK_RATE
+#define PIT_TICK_RATE 1193180
#endif
#define VERSION_STRING "beep-1.3"
@@ -100,7 +100,7 @@
void do_beep(int freq) {
if (console_type == BEEP_TYPE_CONSOLE) {
if(ioctl(console_fd, KIOCSOUND, freq != 0
- ? (int)(CLOCK_TICK_RATE/freq)
+ ? (int)(PIT_TICK_RATE/freq)
: freq) < 0) {
printf("\a"); /* Output the only beep we can, in an effort to fall back on usefulness */
perror("ioctl");