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

--- include/search.h.orig	2008-10-29 08:42:10.000000000 -0400
+++ include/search.h
@@ -20,7 +20,17 @@
 #ifndef _SEARCH_H
 #define	_SEARCH_H 1
 
+#if !defined(__NetBSD__) && !defined(__DragonFly__) && !defined(__sun)
 #include <features.h>
+#else
+#ifdef __sun
+#define __P(x) x
+#define __BEGIN_DECLS
+#define __END_DECLS
+#endif
+#define __PMT __P
+typedef void * __ptr_t;
+#endif
 
 #define __need_size_t
 #include <stddef.h>