[SM-Discuss] glibc question also....

David Brown dmlb2000 at gmail.com
Wed Oct 24 10:33:45 EDT 2007


> Why not using
> #include <limits.h>
>
> That's where INT_MAX is defined for userspace.
> I guess linux/cdrom.h should use this...?
> At least with glibc that's a standard header... and cdrom.h for sure should not define a conflicting INT_MAX itself or something.

Totally didn't see that one good catch :)

Well then that's the solution, then the patch should do something like

#include <limits.h>
#include <linux/cdrom.h>

Then things should work fine.

- David Brown


More information about the SM-Discuss mailing list