diff options
author | Ryo ONODERA <[email protected]> | 2023-03-20 00:34:33 +0900 |
---|---|---|
committer | Matthew Gregan <[email protected]> | 2023-03-21 13:01:46 +1300 |
commit | 63c148f602884e001b32905f96fcdb618a6c0a76 (patch) | |
tree | 9e6a50f025fa6295547d1b7ba0206855ead44abe | |
parent | 70b4e3db7822de4d534959885cda109d6edbee36 (diff) | |
download | cubeb-63c148f602884e001b32905f96fcdb618a6c0a76.tar.gz cubeb-63c148f602884e001b32905f96fcdb618a6c0a76.zip |
On NetBSD, define _NETBSD_SOURCE for timersub()
-rw-r--r-- | src/cubeb_alsa.c | 3 |
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" |