summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-03-18 22:09:05 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2010-03-18 22:09:05 (GMT)
commitbff5db81be28d81d356ee20c54439b6e41ea740e (patch)
tree98572ca1fd900de5675dd3e6b7113c2acabb3aea
parentd63e78cddc4ac217372fd5990d6f99d687c1116b (diff)
downloadbuildroot-bff5db81be28d81d356ee20c54439b6e41ea740e.tar.gz
buildroot-bff5db81be28d81d356ee20c54439b6e41ea740e.tar.bz2
busybox: 1.16.0 beep fix
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox-1.16.0-beep.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.16.0-beep.patch b/package/busybox/busybox-1.16.0-beep.patch
new file mode 100644
index 0000000..68f4179
--- /dev/null
+++ b/package/busybox/busybox-1.16.0-beep.patch
@@ -0,0 +1,17 @@
+diff -urpN busybox-1.16.0/miscutils/beep.c busybox-1.16.0-beep/miscutils/beep.c
+--- busybox-1.16.0/miscutils/beep.c 2010-01-25 01:59:38.000000000 +0100
++++ busybox-1.16.0-beep/miscutils/beep.c 2010-03-14 15:27:24.000000000 +0100
+@@ -79,11 +79,11 @@ int beep_main(int argc, char **argv)
+ }
+ while (rep) {
+ //bb_info_msg("rep[%d] freq=%d, length=%d, delay=%d", rep, freq, length, delay);
+- xioctl(speaker, KIOCSOUND, (void*)(long)tickrate_div_freq);
++ xioctl(speaker, KIOCSOUND, (void*)(uintptr_t)tickrate_div_freq);
+ usleep(1000 * length);
+ ioctl(speaker, KIOCSOUND, (void*)0);
+ if (--rep)
+- usleep(delay);
++ usleep(1000 * delay);
+ }
+ }
+