summaryrefslogtreecommitdiff
path: root/lib/libossaudio
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-12-19 16:16:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-12-19 16:16:20 +0000
commit286e9b17f840616cdbb71239f32cdd1924042d33 (patch)
tree43da668475c7a8c613b57565291cb46acb3eba9e /lib/libossaudio
parent246d632138ea45b54c80861eca72bdeb57ff6c9a (diff)
Use __BSD_VISIBLE instead of _POSIX_SOURCE to avoid pulling
in most of machine/endian.h. OK espie@
Diffstat (limited to 'lib/libossaudio')
-rw-r--r--lib/libossaudio/soundcard.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libossaudio/soundcard.h b/lib/libossaudio/soundcard.h
index abfd228d999..ce573a34366 100644
--- a/lib/libossaudio/soundcard.h
+++ b/lib/libossaudio/soundcard.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: soundcard.h,v 1.10 2003/05/03 19:01:48 avsm Exp $ */
+/* $OpenBSD: soundcard.h,v 1.11 2005/12/19 16:16:19 millert Exp $ */
/* $NetBSD: soundcard.h,v 1.11 2001/05/09 21:49:58 augustss Exp $ */
/*-
@@ -113,10 +113,12 @@
* 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 */
+#if __BSD_VISIBLE
+#undef __BSD_VISIBLE
+#define __BSD_VISIBLE 0 /* avoid dragging in a lot of junk */
#include <machine/endian.h>
-#undef _POSIX_SOURCE
+#undef __BSD_VISIBLE
+#define __BSD_VISIBLE 1
#else
#include <machine/endian.h>
#endif