pkgsrc/audio/alsa-lib/patches/patch-ay
hans cbabfe9851 Fix build on SunOS.
Inspired by the patches used for the native package in OI.
2012-02-15 19:43:51 +00:00

23 lines
506 B
Text

$NetBSD: patch-ay,v 1.3 2012/02/15 19:43:51 hans Exp $
--- src/pcm/pcm_null.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_null.c
@@ -26,12 +26,18 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include <limits.h>
#include <sys/shm.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_null = "";