summaryrefslogtreecommitdiff
path: root/audio/alsa-lib/patches/patch-az
blob: 71be5f15b722ede2d69c298bfef35df431c15d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-az,v 1.3 2012/02/15 19:43:51 hans Exp $

--- src/pcm/pcm_rate.c.orig	2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_rate.c
@@ -28,7 +28,9 @@
  *
  */
 #include <inttypes.h>
+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__sun)
 #include <byteswap.h>
+#endif
 #include "pcm_local.h"
 #include "pcm_plugin.h"
 #include "pcm_rate.h"
@@ -36,6 +38,10 @@
 
 #include "plugin_ops.h"
 
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
 #if 0
 #define DEBUG_REFINE
 #endif