summaryrefslogtreecommitdiff
path: root/audio/alsa-lib/files/patch-src__pcm__pcm_direct.c
blob: ba2ee2b2e6af21e315cc7b4b524554f74ea2926c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/pcm/pcm_direct.c~
+++ src/pcm/pcm_direct.c
@@ -44,12 +44,16 @@
  *
  */
  
+#if defined(__NetBSD__)
+typedef __semun semun;
+#elif !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
 union semun {
 	int              val;    /* Value for SETVAL */
 	struct semid_ds *buf;    /* Buffer for IPC_STAT, IPC_SET */
 	unsigned short  *array;  /* Array for GETALL, SETALL */
 	struct seminfo  *__buf;  /* Buffer for IPC_INFO (Linux specific) */
 };
+#endif
  
 /*
  * FIXME: