aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cubeb_alsa.c')
-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"