[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
library/718: soundcard.h defines _POSIX_SOURCE which may prevent compiles.
>Number: 718
>Category: library
>Synopsis: soundcard.h defines _POSIX_SOURCE which may prevent compiles.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bugs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 16 15:20:01 MST 1999
>Last-Modified:
>Originator: Marc Milgram
>Organization:
net
>Release: 2.4
>Environment:
System : OpenBSD 2.4
Architecture: OpenBSD.i386
Machine : i386
>Description:
soundcard.h defines _POSIX_SOURCE. If soundcard.h is included
before sys/types.h, u_char will not be defined. If cdio.h is then
included, the compile will not succeed as u_char is not defined.
>How-To-Repeat:
Compile a file with the following three lines (in order):
#include <soundcard.h>
#include <sys/types.h>
#include <sys/cdio.h>
>Fix:
Remove the #define _POSIX_SOURCE from soundcard.h; or, after using
_POSIX_SOURCE, undefine _POSIX_SOURCE if it was not previously
defined.
>Audit-Trail:
>Unformatted: