NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
standards/45258: #include <string.h> -> <strings.h> -> <stdint.h>
>Number: 45258
>Category: standards
>Synopsis: #include <string.h> -> <strings.h> -> <stdint.h>
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: standards-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 16 01:30:00 +0000 2011
>Originator: David A. Holland
>Release: NetBSD 5.99.55 (20110815)
>Organization:
>Environment:
System: NetBSD macaran 5.99.49 NetBSD 5.99.49 (MACARAN) #8: Mon Apr 11 19:54:18
EDT 2011 dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:
#include <string.h>
leads to
#include <strings.h>
which then does
#include <stdint.h>
polluting the namespace of string.h in violation of applicable standards.
This screws up builds of 3rd-party software.
>How-To-Repeat:
#include <string.h>
>Fix:
Either remove <strings.h> from <string.h>, which is probably not a
viable proposition, or fix <strings.h> not to spew into the namespace.
Home |
Main Index |
Thread Index |
Old Index