[Python-checkins] cpython: Issue #26854: Android has a different include path for soundcard.h.

stefan.krah python-checkins at python.org
Tue Apr 26 10:49:21 EDT 2016


https://hg.python.org/cpython/rev/d943e6f7c9f3
changeset:   101161:d943e6f7c9f3
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Apr 26 16:48:48 2016 +0200
summary:
  Issue #26854: Android has a different include path for soundcard.h.

files:
  Modules/ossaudiodev.c |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -31,7 +31,11 @@
 #endif
 
 #include <sys/ioctl.h>
+#ifdef __ANDROID__
+#include <linux/soundcard.h>
+#else
 #include <sys/soundcard.h>
+#endif
 
 #if defined(linux)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list