summaryrefslogtreecommitdiff
path: root/audio/dtmfdial/files/patch-dial.c
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2006-03-31 02:53:24 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2006-03-31 02:53:24 +0000
commit143b70acd847db82357385b48e5b796034942485 (patch)
tree555a9088481b17cb0c36a0cbfcdea55d193bd4f9 /audio/dtmfdial/files/patch-dial.c
parentfix master site and WWW (diff)
Add dtmfdial.
dtmfdial generates DTMF (touch tone) signals and sends them to the sound card or stores them as a raw sound file. PR: ports/94988 Submitted by: David Bushong <david@bushong.net>
Diffstat (limited to 'audio/dtmfdial/files/patch-dial.c')
-rw-r--r--audio/dtmfdial/files/patch-dial.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/audio/dtmfdial/files/patch-dial.c b/audio/dtmfdial/files/patch-dial.c
new file mode 100644
index 000000000000..4530d6a3327c
--- /dev/null
+++ b/audio/dtmfdial/files/patch-dial.c
@@ -0,0 +1,24 @@
+--- dial.c.orig Fri Mar 31 04:44:07 2006
++++ dial.c Fri Mar 31 04:44:23 2006
+@@ -7,10 +7,10 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <fcntl.h>
+-#include <malloc.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#include <linux/soundcard.h>
++#include <sys/soundcard.h>
+
+ #define DEBUG(x)
+
+@@ -130,7 +130,7 @@
+ ++*index;
+ }
+
+-void
++int
+ main(int argc, char **argv)
+ {
+ char *cp;