75 lines
2.5 KiB
Diff
75 lines
2.5 KiB
Diff
From 44b00e4a5e6cd78d832b1fdb20b8244b49652491 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bla=C5=BE=20Toma=C5=BEi=C4=8D?= <blaz.tomazic@gmail.com>
|
|
Date: Wed, 23 May 2012 13:45:33 +0200
|
|
Subject: [PATCH 1/1] Fix building where unistd.h is missing
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Include "unistd.h" header in files that were reporting undefined
|
|
references to "getpid" and "getppid".
|
|
|
|
Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
|
|
---
|
|
plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp | 2 ++
|
|
plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp | 2 ++
|
|
plugins/multimedia/pulseaudio/qpulseaudioengine.cpp | 2 ++
|
|
src/systeminfo/linux/qsysteminfo_linux.cpp | 2 ++
|
|
4 files changed, 8 insertions(+)
|
|
|
|
diff --git a/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp b/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp
|
|
index f916595..136f4da 100644
|
|
--- a/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp
|
|
+++ b/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp
|
|
@@ -47,6 +47,8 @@
|
|
#include "qpulseaudioengine.h"
|
|
#include "qpulsehelpers.h"
|
|
|
|
+#include <unistd.h>
|
|
+
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
const int PeriodTimeMs = 50;
|
|
diff --git a/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp b/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp
|
|
index 90c4470..a48ab8c 100644
|
|
--- a/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp
|
|
+++ b/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp
|
|
@@ -47,6 +47,8 @@
|
|
#include "qpulseaudioengine.h"
|
|
#include "qpulsehelpers.h"
|
|
|
|
+#include <unistd.h>
|
|
+
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
const int PeriodTimeMs = 20;
|
|
diff --git a/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp b/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp
|
|
index 1abf93b..05014d3 100644
|
|
--- a/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp
|
|
+++ b/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp
|
|
@@ -47,6 +47,8 @@
|
|
#include "qaudiooutput_pulse.h"
|
|
#include "qpulsehelpers.h"
|
|
|
|
+#include <unistd.h>
|
|
+
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
static void serverInfoCallback(pa_context *context, const pa_server_info *info, void *userdata)
|
|
diff --git a/src/systeminfo/linux/qsysteminfo_linux.cpp b/src/systeminfo/linux/qsysteminfo_linux.cpp
|
|
index af4be26..5e5f7d4 100644
|
|
--- a/src/systeminfo/linux/qsysteminfo_linux.cpp
|
|
+++ b/src/systeminfo/linux/qsysteminfo_linux.cpp
|
|
@@ -43,6 +43,8 @@
|
|
|
|
#include "qsysteminfo_dbus_p.h"
|
|
|
|
+#include <unistd.h>
|
|
+
|
|
#if !defined(Q_WS_MAEMO_6)
|
|
#if defined(Q_WS_X11)
|
|
#include <QX11Info>
|
|
--
|
|
1.7.10.2
|
|
|