Hello!<br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 3:32 PM, Max Khon <span dir="ltr"><<a href="mailto:fjoe@samodelkin.net">fjoe@samodelkin.net</a>></span> wrote:<br><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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><div>Attached patches should fix it.</div></div></blockquote><br>I've been told that I should always submit patches through Mantis.<br>Patches to fix this issue added here: <a href="https://issues.asterisk.org/view.php?id=15877">https://issues.asterisk.org/view.php?id=15877</a><br>
<br>Max<br></div><br>