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

@ -660,7 +660,9 @@ playback devices.
#include <stdio.h>
#include <string.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdarg.h>
#include <signal.h>
#include <ctype.h>

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:

View file

@ -20,7 +20,9 @@
#include "config.h"
#include <stdio.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <string.h>
#include <poll.h>
#include <sys/mman.h>