aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRyo ONODERA <[email protected]>2023-03-20 00:34:33 +0900
committerMatthew Gregan <[email protected]>2023-03-21 13:01:46 +1300
commit63c148f602884e001b32905f96fcdb618a6c0a76 (patch)
tree9e6a50f025fa6295547d1b7ba0206855ead44abe
parent70b4e3db7822de4d534959885cda109d6edbee36 (diff)
downloadcubeb-63c148f602884e001b32905f96fcdb618a6c0a76.tar.gz
cubeb-63c148f602884e001b32905f96fcdb618a6c0a76.zip
On NetBSD, define _NETBSD_SOURCE for timersub()
-rw-r--r--src/cubeb_alsa.c3
1 files changed, 3 insertions, 0 deletions
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"