From 63c148f602884e001b32905f96fcdb618a6c0a76 Mon Sep 17 00:00:00 2001 From: Ryo ONODERA Date: Mon, 20 Mar 2023 00:34:33 +0900 Subject: [PATCH] On NetBSD, define _NETBSD_SOURCE for timersub() --- src/cubeb_alsa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cubeb_alsa.c b/src/cubeb_alsa.c index 7481c16..6b53df0 100644 --- a/src/cubeb_alsa.c +++ b/src/cubeb_alsa.c @@ -7,6 +7,9 @@ #undef NDEBUG #define _DEFAULT_SOURCE #define _BSD_SOURCE +#if defined(__NetBSD__) +#define _NETBSD_SOURCE /* timersub() */ +#endif #define _XOPEN_SOURCE 500 #include "cubeb-internal.h" #include "cubeb/cubeb.h"