Hello!<br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 1:14 AM, Kevin P. Fleming <span dir="ltr"><<a href="mailto:kpfleming@digium.com" target="_blank">kpfleming@digium.com</a>></span> wrote:</div><div class="gmail_quote">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">SVN commits to the DAHDI project wrote:<br>
<br>
> Modified: tools/trunk/dahdi_monitor.c<br>
> URL: <a href="http://svn.asterisk.org/svn-view/dahdi/tools/trunk/dahdi_monitor.c?view=diff&rev=7134&r1=7133&r2=7134" target="_blank">http://svn.asterisk.org/svn-view/dahdi/tools/trunk/dahdi_monitor.c?view=diff&rev=7134&r1=7133&r2=7134</a><br>
> ==============================================================================<br>
> --- tools/trunk/dahdi_monitor.c (original)<br>
> +++ tools/trunk/dahdi_monitor.c Tue Sep 15 12:51:15 2009<br>
> @@ -42,7 +42,11 @@<br>
> #include "dahdi_tools_version.h"<br>
> #include "wavformat.h"<br>
><br>
> +#if defined(__FreeBSD__)<br>
> +#include <sys/soundcard.h><br>
> +#else<br>
> #include <linux/soundcard.h><br>
> +#endif<br>
<br>
Please use configure script tests for this sort of thing, instead of<br>
hardcoded defines in source files.<br></blockquote><div><br></div><div>This has already been fixed.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> +#if defined(__FreeBSD__)<br>
> + if ((res = ioctl(fd, DAHDI_LOADZONE, &h))) {<br>
> +#else<br>
> if ((res = ioctl(fd, DAHDI_LOADZONE, h))) {<br>
> +#endif<br>
> fprintf(stderr, "ioctl(DAHDI_LOADZONE) failed: %s\n", strerror(errno));<br>
> return res;<br>
> }<br>
<br>
This is not acceptable; the DAHDI_LOADZONE API must be the same between<br>
all supported DAHDI platforms. If FreeBSD cannot support an ioctl that<br>
has a bare 'int' argument, then there must be a new version of<br>
DAHDI_LOADZONE added for FreeBSD *and* Linux that accepts an 'int *',<br>
and the old version of DAHDI_LOADZONE must be supported on Linux via the<br>
compatibility mechanism we already use.</blockquote><div><br></div><div>Attached patches should fix it.</div><div><br></div><div>Max</div></div>