summaryrefslogtreecommitdiff
path: root/misc/dahdi-kmod/files/patch-tools-tonezone.c
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2010-03-11 09:42:07 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2010-03-11 09:42:07 +0000
commit08acf5c407242344b0047b8040900f52df620dde (patch)
tree49936ec28d8b2a4256959f13245d757df97e04bd /misc/dahdi-kmod/files/patch-tools-tonezone.c
parentUpgrade to version 2.4.0. (diff)
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_3_0'.release/7.3.0
Diffstat (limited to 'misc/dahdi-kmod/files/patch-tools-tonezone.c')
-rw-r--r--misc/dahdi-kmod/files/patch-tools-tonezone.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/misc/dahdi-kmod/files/patch-tools-tonezone.c b/misc/dahdi-kmod/files/patch-tools-tonezone.c
deleted file mode 100644
index 66bb1c0034b9..000000000000
--- a/misc/dahdi-kmod/files/patch-tools-tonezone.c
+++ /dev/null
@@ -1,25 +0,0 @@
---- tools/tonezone.c.orig 2008-08-06 06:43:02.000000000 +0700
-+++ tools/tonezone.c 2010-03-03 17:24:01.000000000 +0600
-@@ -46,6 +46,10 @@
- #define CLIP 32635
- #define BIAS 0x84
-
-+#ifndef ENODATA
-+#define ENODATA EINVAL
-+#endif
-+
- struct tone_zone *tone_zone_find(char *country)
- {
- struct tone_zone *z;
-@@ -440,7 +444,11 @@
- dump_tone_zone(h, MAX_SIZE - space);
- #endif
-
-+#if defined(__FreeBSD__)
-+ if ((res = ioctl(fd, DAHDI_LOADZONE, &h))) {
-+#else
- if ((res = ioctl(fd, DAHDI_LOADZONE, h))) {
-+#endif
- fprintf(stderr, "ioctl(DAHDI_LOADZONE) failed: %s\n", strerror(errno));
- return res;
- }