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
The following reply was made to PR standards/48339; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: standards-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: Re: standards/48339: _POSIX_C_SOURCE and <dev/usb/usb.h> don't mix
Date: Sat, 2 Nov 2013 17:33:39 +0000
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