summaryrefslogtreecommitdiffstats
path: root/Modules/ossaudiodev.c
diff options
context:
space:
mode:
authorJakub KulĂ­k <Kulikjak@gmail.com>2022-04-20 10:46:08 (GMT)
committerGitHub <noreply@github.com>2022-04-20 10:46:08 (GMT)
commit4420faf273e9e2d03226a9375e1e04a336230c84 (patch)
tree4c9d6cc13664eb6497e13b1b238c938573914be3 /Modules/ossaudiodev.c
parent5101d97d0b13425ccc5ed37abfabb07701db81fe (diff)
downloadcpython-4420faf273e9e2d03226a9375e1e04a336230c84.zip
cpython-4420faf273e9e2d03226a9375e1e04a336230c84.tar.gz
cpython-4420faf273e9e2d03226a9375e1e04a336230c84.tar.bz2
gh-91734: Fix ossaudio support on Solaris (GH-91735)
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r--Modules/ossaudiodev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index 2f507de..0568b6d 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -1277,8 +1277,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