1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/misc/dahdi-kmod/files/patch-oslec
Max Khon da90049c53 Update to 2.4.0-rc4. Most notable changes are:
- OSLEC echo canceller
- experimental wcb1xxp (zaphfc) port for CCD HFC-S single-port PCI ISDN cards

Sponsored by:	The FreeBSD Foundation (this and all previous commits to this port)
2010-08-31 20:54:20 +00:00

30 lines
795 B
Plaintext

diff -ru freebsd/drivers/staging/echo/echo.c.orig freebsd/drivers/staging/echo/echo.c.orig
--- freebsd/drivers/staging/echo/echo.c.orig 2010-08-27 06:47:12.000000000 +0700
+++ freebsd/drivers/staging/echo/echo.c 2010-08-31 14:45:48.000000000 +0700
@@ -102,9 +102,15 @@
Mark, Pawel, and Pavel.
*/
+#if defined(__FreeBSD__)
+#include <sys/types.h>
+#include <sys/libkern.h>
+#include <dahdi/compat/bsd.h>
+#else
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
+#endif /* !__FreeBSD__ */
#include "echo.h"
@@ -656,7 +662,9 @@
}
EXPORT_SYMBOL_GPL(oslec_hpf_tx);
+#if !defined(__FreeBSD__)
MODULE_LICENSE("GPL");
MODULE_AUTHOR("David Rowe");
MODULE_DESCRIPTION("Open Source Line Echo Canceller");
MODULE_VERSION("0.3.0");
+#endif /* !__FreeBSD__ */