add NetBSD/OpenBSD build support (except test/)

Fixes: https://github.com/alsa-project/alsa-lib/pull/250
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
SASANO Takayoshi 2022-07-10 11:03:00 +09:00 committed by Jaroslav Kysela
parent e288ca7c29
commit b33ef3f73d
14 changed files with 52 additions and 17 deletions

View file

@ -44,12 +44,16 @@
*
*/
#if !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 */
#if defined(__linux__)
struct seminfo *__buf; /* Buffer for IPC_INFO (Linux specific) */
#endif
};
#endif
/*
* FIXME: