Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] glibc question also....

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "David Brown" <dmlb2000 AT gmail.com>
  • To: "Thomas Orgis" <thomas-forum AT orgis.org>
  • Cc: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] glibc question also....
  • Date: Wed, 24 Oct 2007 07:33:45 -0700

> 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




Archive powered by MHonArc 2.6.24.

Top of Page