Eric,

I am not sure if this is what you meant or not, but here you go.

I added if_tun_utils.h and if_tun_utils.i to gnuradio-core/src/lib/general
I only coded get_TUNSETIFF() as this was the define that was broken on the
PS3

I added a check in configure.ac to check if if_tun.h was available.  This
patch should not break
the build on systems that do not have if_tun.h

Tim

<snip>

>
>
> It may be easiest to write a small stand-alone function that just
> returns the value of TUNSETIFF and then swig that.  E.g.,
>
> int
> get_TUNSETIFF()
> {
> #ifdef TUNSETIFF
>  return TUNSETIFF;
> #else
>  return -1;
> #endif
> }
>
> Feel free to drop it into gnuradio-core/src/lib/general and send a patch.
>
> Thanks,
> Eric
>

Attachment: if_tun_hack.patch
Description: Binary data

_______________________________________________
Patch-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/patch-gnuradio

Reply via email to