[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Network sockets don't work with new 1.18.current



2011/1/6 David Gálvez <dgalvez75@gmail.com>:
> I don't know why the check is done like that, it's very easy to forget
> putting the correct version when the kernel version is bumped.
>
> Wouldn't be better to do something like this?
>
> if ((MINT_MAJOR == 0)
>                || ((MINT_MAJOR == 1) && ((MINT_MINOR < 15) || (MINT_KVERSION < 2)))
> || !so_register)
>
> As is done in other modules, just check that version is newer than
> 1.15 and kerinfo version 2 or upper??
>

Now that I think about this....inet4.xdd is more tight to the kernel
than other modules, then is understandable why the exact minor version
is checked.