summaryrefslogtreecommitdiffstats
path: root/src/multimedia/qml/qsoundeffect_pulse_p.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-02-20 10:13:29 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-02-20 10:14:43 (GMT)
commita3d3f72bf571d46fc03c62b5aae51f5cc94d6999 (patch)
treeb01e6ab002e92276baa57925a46d161ed4eff3cf /src/multimedia/qml/qsoundeffect_pulse_p.cpp
parentf0eb658611f549470f0d90e141eda61ab9301838 (diff)
downloadQt-a3d3f72bf571d46fc03c62b5aae51f5cc94d6999.zip
Qt-a3d3f72bf571d46fc03c62b5aae51f5cc94d6999.tar.gz
Qt-a3d3f72bf571d46fc03c62b5aae51f5cc94d6999.tar.bz2
Fix compilation on recent Linux systems: getpid(2) is in unistd.h.
Newer Linux systems (glibc 2.10, gcc 4.4) are much better at not leaking symbols, so you have to include the proper headers.
Diffstat (limited to 'src/multimedia/qml/qsoundeffect_pulse_p.cpp')
-rw-r--r--src/multimedia/qml/qsoundeffect_pulse_p.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multimedia/qml/qsoundeffect_pulse_p.cpp b/src/multimedia/qml/qsoundeffect_pulse_p.cpp
index b1e5982..de02dac 100644
--- a/src/multimedia/qml/qsoundeffect_pulse_p.cpp
+++ b/src/multimedia/qml/qsoundeffect_pulse_p.cpp
@@ -67,6 +67,8 @@
#include <pulse/ext-stream-restore.h>
#endif
+#include <unistd.h>
+
// Less than ideal
#define PA_SCACHE_ENTRY_SIZE_MAX (1024*1024*16)