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 <>
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, 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

Home | Main Index | Thread Index | Old Index