NetBSD-Bugs archive

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

Re: standards/48339: _POSIX_C_SOURCE and <dev/usb/usb.h> don't mix



On Thu, Oct 24, 2013 at 07:40:00PM +0000, rhialto%falu.nl@localhost wrote:
 >      The following small program fails to compile:
 > 
 > $ cat j.c
 > #define _POSIX_C_SOURCE
 > #include <dev/usb/usb.h>
 > 
 > int main(int argc, char *argv[])
 > {
 >     return 0;
 > }

"don't do that"

POSIX doesn't define USB drivers, so in principle once you do set
_POSIX_C_SOURCE it should refuse to even find usb.h.

That said, this:

 > >Fix:
 >      Probably <dev/usb/usb.h> should use more (standard or at least
 >      certain to be defined) types, such as uint{8,16,32}_t or plain
 >      unsigned char, unsigned int and unsigned long.

probably won't hurt anything.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index