summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2004-05-11 01:34:55 (GMT)
committerGreg Ward <gward@python.net>2004-05-11 01:34:55 (GMT)
commitfd0283eaa0fd593d73aab0be52038f3b6cb6c44b (patch)
treec1be85a2f2f397c5e9b14df61d5467de72298e92 /Modules
parentdd69b0ab6c8ba25b6cdff65df30524411dee3cc8 (diff)
downloadcpython-fd0283eaa0fd593d73aab0be52038f3b6cb6c44b.zip
cpython-fd0283eaa0fd593d73aab0be52038f3b6cb6c44b.tar.gz
cpython-fd0283eaa0fd593d73aab0be52038f3b6cb6c44b.tar.bz2
SF #832236: merge from release23-maint branch: wrap a bunch of
_EXPORT_INT calls in #ifdef's, to avoid breaking the build on MkLinux (Linux 2.0).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ossaudiodev.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index c53a08a..047355f 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -989,14 +989,30 @@ initossaudiodev(void)
_EXPORT_INT(m, SOUND_MIXER_LINE1);
_EXPORT_INT(m, SOUND_MIXER_LINE2);
_EXPORT_INT(m, SOUND_MIXER_LINE3);
+#ifdef SOUND_MIXER_DIGITAL1
_EXPORT_INT(m, SOUND_MIXER_DIGITAL1);
+#endif
+#ifdef SOUND_MIXER_DIGITAL2
_EXPORT_INT(m, SOUND_MIXER_DIGITAL2);
+#endif
+#ifdef SOUND_MIXER_DIGITAL3
_EXPORT_INT(m, SOUND_MIXER_DIGITAL3);
+#endif
+#ifdef SOUND_MIXER_PHONEIN
_EXPORT_INT(m, SOUND_MIXER_PHONEIN);
+#endif
+#ifdef SOUND_MIXER_PHONEOUT
_EXPORT_INT(m, SOUND_MIXER_PHONEOUT);
+#endif
+#ifdef SOUND_MIXER_VIDEO
_EXPORT_INT(m, SOUND_MIXER_VIDEO);
+#endif
+#ifdef SOUND_MIXER_RADIO
_EXPORT_INT(m, SOUND_MIXER_RADIO);
+#endif
+#ifdef SOUND_MIXER_MONITOR
_EXPORT_INT(m, SOUND_MIXER_MONITOR);
+#endif
/* Expose all the ioctl numbers for masochists who like to do this
stuff directly. */
@@ -1022,7 +1038,9 @@ initossaudiodev(void)
_EXPORT_INT(m, SNDCTL_DSP_GETFMTS);
_EXPORT_INT(m, SNDCTL_DSP_GETIPTR);
_EXPORT_INT(m, SNDCTL_DSP_GETISPACE);
+#ifdef SNDCTL_DSP_GETODELAY
_EXPORT_INT(m, SNDCTL_DSP_GETODELAY);
+#endif
_EXPORT_INT(m, SNDCTL_DSP_GETOPTR);
_EXPORT_INT(m, SNDCTL_DSP_GETOSPACE);
#ifdef SNDCTL_DSP_GETSPDIF