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

20 lines
456 B
Text

$NetBSD: patch-aw,v 1.4 2012/02/15 19:43:51 hans Exp $
--- src/pcm/pcm_misc.c.orig 2008-10-29 14:42:10 +0200
+++ src/pcm/pcm_misc.c 2008-12-21 17:08:14 +0200
@@ -23,7 +23,15 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#ifdef __NetBSD__
+#include <sys/bswap.h>
+#elif defined(__DragonFly__)
+#include <sys/endian.h>
+#elif defined (__sun)
+#include <sys/byteorder.h>
+#else
#include <byteswap.h>
+#endif
#include "pcm_local.h"