diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-17 01:27:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-17 01:27:37 +0000 |
commit | 924d38a90ba75c0adfea3893a11603134eb515e3 (patch) | |
tree | 84133691d82d1fa49d456fe62fbb2251da7f126e /lib/libossaudio/soundcard.h | |
parent | 4f6222294cd0a4271ba0485131e08c94308afdb0 (diff) |
#undef _POSIX_SOURCE after inclusion of machine/endian.h (if it was not already defined).
Diffstat (limited to 'lib/libossaudio/soundcard.h')
-rw-r--r-- | lib/libossaudio/soundcard.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libossaudio/soundcard.h b/lib/libossaudio/soundcard.h index 23fe0fac839..7d7b9bf26eb 100644 --- a/lib/libossaudio/soundcard.h +++ b/lib/libossaudio/soundcard.h @@ -1,4 +1,4 @@ -/* $OpenBSD: soundcard.h,v 1.1 1998/05/01 09:23:00 provos Exp $ */ +/* $OpenBSD: soundcard.h,v 1.2 1999/02/17 01:27:36 millert Exp $ */ /* $NetBSD: soundcard.h,v 1.4 1997/10/29 20:23:27 augustss Exp $ */ /* @@ -106,8 +106,13 @@ * include all of endian.h because it contains a lot * junk symbols. [augustss] */ +#ifndef _POSIX_SOURCE #define _POSIX_SOURCE /* avoid dragging in a lot of junk */ #include <machine/endian.h> +#undef _POSIX_SOURCE +#else +#include <machine/endian.h> +#endif #if _QUAD_LOWWORD == 0 #define AFMT_S16_NE AFMT_S16_LE #else |