summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-10-04 10:23:57 (GMT)
committerArmin Rigo <arigo@tunes.org>2006-10-04 10:23:57 (GMT)
commitc6f2f884b4789c4000ffb30a85646f088da102b1 (patch)
treec101a06fef493ab3f226ae5dcdb601804acb7213
parent10525ad31383e33c6e2dcdfcc9180ada55fa3b50 (diff)
downloadcpython-c6f2f884b4789c4000ffb30a85646f088da102b1.zip
cpython-c6f2f884b4789c4000ffb30a85646f088da102b1.tar.gz
cpython-c6f2f884b4789c4000ffb30a85646f088da102b1.tar.bz2
Compilation problem caused by conflicting typedefs for uint32_t
(unsigned long vs. unsigned int).
-rw-r--r--Modules/linuxaudiodev.c2
-rw-r--r--Modules/ossaudiodev.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c
index c1c7363..b435d76 100644
--- a/Modules/linuxaudiodev.c
+++ b/Modules/linuxaudiodev.c
@@ -28,7 +28,9 @@
#if defined(linux)
#include <linux/soundcard.h>
+#ifndef HAVE_STDINT_H
typedef unsigned long uint32_t;
+#endif
#elif defined(__FreeBSD__)
#include <machine/soundcard.h>
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index 9716838..eb59c4d 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -34,7 +34,9 @@
#if defined(linux)
+#ifndef HAVE_STDINT_H
typedef unsigned long uint32_t;
+#endif
#elif defined(__FreeBSD__)