[Python-checkins] gh-91734: Fix ossaudio support on Solaris (GH-91735)

miss-islington webhook-mailer at python.org
Wed Apr 20 07:09:06 EDT 2022


https://github.com/python/cpython/commit/56c2d0809703eda9d2f4ab5600c054b73a5a2460
commit: 56c2d0809703eda9d2f4ab5600c054b73a5a2460
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-04-20T04:09:01-07:00
summary:

gh-91734: Fix ossaudio support on Solaris (GH-91735)

(cherry picked from commit 4420faf273e9e2d03226a9375e1e04a336230c84)

Co-authored-by: Jakub Kulík <Kulikjak at gmail.com>

files:
A Misc/NEWS.d/next/Library/2022-04-20-09-49-33.gh-issue-91734.4Dj4Gy.rst
M Modules/ossaudiodev.c

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 0000000000000..47d9e0dea458a
--- /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 2a1ac10814a69..fb57764b6aab4 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



More information about the Python-checkins mailing list