diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-04-20 04:06:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 04:06:29 -0700 |
commit | 923ef87c77d4e0ea54fa03eae6928b42b9094e8d (patch) | |
tree | 02d2d28ff2e275a9caf8a4ebd4f9666791972ad7 | |
parent | 88bbc5dd7af2efa74989f23689438d5113521798 (diff) | |
download | cpython-git-923ef87c77d4e0ea54fa03eae6928b42b9094e8d.tar.gz |
gh-91734: Fix ossaudio support on Solaris (GH-91735)
(cherry picked from commit 4420faf273e9e2d03226a9375e1e04a336230c84)
Co-authored-by: Jakub KulĂk <Kulikjak@gmail.com>
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst | 1 | ||||
-rw-r--r-- | Modules/ossaudiodev.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst b/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst new file mode 100644 index 0000000000..47d9e0dea4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst @@ -0,0 +1 @@ +Fix OSS audio support on Solaris. diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 4f2d9cb8b7..b22bd42dca 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -1243,8 +1243,12 @@ PyInit_ossaudiodev(void) _EXPORT_INT(m, SNDCTL_DSP_GETSPDIF); #endif _EXPORT_INT(m, SNDCTL_DSP_GETTRIGGER); +#ifdef SNDCTL_DSP_MAPINBUF _EXPORT_INT(m, SNDCTL_DSP_MAPINBUF); +#endif +#ifdef SNDCTL_DSP_MAPOUTBUF _EXPORT_INT(m, SNDCTL_DSP_MAPOUTBUF); +#endif _EXPORT_INT(m, SNDCTL_DSP_NONBLOCK); _EXPORT_INT(m, SNDCTL_DSP_POST); #ifdef SNDCTL_DSP_PROFILE |