On Wed, Dec 12, 2007 at 09:19:51PM -0700, Martin Michlmayr wrote: > > cdrwtool.c: In function 'cdrom_open_check': > > cdrwtool.c:606: error: 'INT_MAX' undeclared (first use in this function)
This puzzled me at first, as line 606 reads: ret = ioctl(fd, CDROM_DRIVE_STATUS, CDSL_CURRENT); Both constants come from linux/cdrom.h. For me it contains: #define CDROM_DRIVE_STATUS 0x5326 /* Get tray position, etc. */ #define CDSL_CURRENT ((int) (~0U>>1)) I wouldn't be surprised if the second #define had been changed to use INT_MAX in more recent kernel sources. So is this a bug in the header file - should it include <limits.h> itself? Cheers, Richard -- __ _ |_) /| Richard Atterer | \/¯| http://atterer.net ¯ '` ¯