]> granicus.if.org Git - python/commitdiff
Get build working on Redhat 7.2 linux 2.4.7
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 21:27:54 +0000 (21:27 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 10 Jan 2003 21:27:54 +0000 (21:27 +0000)
Modules/ossaudiodev.c

index 9bfd55e78cfd6018d9c63353d6b829ef482dcaa0..ccc7882f428e65dcc08d5a1d9c0bd018c4637da2 100644 (file)
@@ -1016,7 +1016,9 @@ initossaudiodev(void)
     _EXPORT_INT(m, SNDCTL_DSP_GETODELAY);
     _EXPORT_INT(m, SNDCTL_DSP_GETOPTR);
     _EXPORT_INT(m, SNDCTL_DSP_GETOSPACE);
+#ifdef SNDCTL_DSP_GETSPDIF
     _EXPORT_INT(m, SNDCTL_DSP_GETSPDIF);
+#endif
     _EXPORT_INT(m, SNDCTL_DSP_GETTRIGGER);
     _EXPORT_INT(m, SNDCTL_DSP_MAPINBUF);
     _EXPORT_INT(m, SNDCTL_DSP_MAPOUTBUF);
@@ -1028,7 +1030,9 @@ initossaudiodev(void)
     _EXPORT_INT(m, SNDCTL_DSP_SETDUPLEX);
     _EXPORT_INT(m, SNDCTL_DSP_SETFMT);
     _EXPORT_INT(m, SNDCTL_DSP_SETFRAGMENT);
+#ifdef SNDCTL_DSP_SETSPDIF
     _EXPORT_INT(m, SNDCTL_DSP_SETSPDIF);
+#endif
     _EXPORT_INT(m, SNDCTL_DSP_SETSYNCRO);
     _EXPORT_INT(m, SNDCTL_DSP_SETTRIGGER);
     _EXPORT_INT(m, SNDCTL_DSP_SPEED);