summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Shaw <hobbes1069@gmail.com>2012-04-10 18:52:07 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2012-04-10 18:52:07 (GMT)
commita1db7b11e8303f3d546a87cd98c2b910a7ea805a (patch)
tree68a3a2ba7698cf0b1f62c08245cc44a1b6c90a02
parente9a0ecb655cac62957911fecf63078bd3ad9409d (diff)
Make mythtv compile better with GCC 4.7
Fixes #10309 Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
-rw-r--r--mythtv/libs/libmyth/programinfoupdater.cpp2
-rw-r--r--mythtv/libs/libmythdb/httpcomms.cpp2
-rw-r--r--mythtv/libs/libmythdb/lcddevice.cpp1
-rw-r--r--mythtv/libs/libmythdb/mythdbcon.cpp1
-rw-r--r--mythtv/libs/libmythdb/mythdownloadmanager.cpp2
-rw-r--r--mythtv/libs/libmythdb/mythsocket.cpp1
-rw-r--r--mythtv/libs/libmythdb/mythsocketthread.cpp1
-rw-r--r--mythtv/libs/libmythdb/remotefile.cpp1
-rw-r--r--mythtv/libs/libmythtv/audioinputoss.cpp1
-rw-r--r--mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp2
-rw-r--r--mythtv/libs/libmythui/mythrender_vdpau.cpp1
-rw-r--r--mythtv/libs/libmythupnp/upnpdevice.cpp1
-rw-r--r--mythtv/libs/libmythupnp/upnptasknotify.cpp1
-rw-r--r--mythtv/libs/libmythupnp/upnptasksearch.cpp1
14 files changed, 18 insertions, 0 deletions
diff --git a/mythtv/libs/libmyth/programinfoupdater.cpp b/mythtv/libs/libmyth/programinfoupdater.cpp
index 8f24c23..32f618f 100644
--- a/mythtv/libs/libmyth/programinfoupdater.cpp
+++ b/mythtv/libs/libmyth/programinfoupdater.cpp
@@ -1,3 +1,5 @@
+#include <unistd.h>
+
#include "programinfoupdater.h"
#include "remoteutil.h"
#include "compat.h"
diff --git a/mythtv/libs/libmythdb/httpcomms.cpp b/mythtv/libs/libmythdb/httpcomms.cpp
index 3c3eeac..cdfe35b 100644
--- a/mythtv/libs/libmythdb/httpcomms.cpp
+++ b/mythtv/libs/libmythdb/httpcomms.cpp
@@ -6,6 +6,8 @@ using namespace std;
#include <QTimer>
#include <QFile>
+#include <unistd.h>
+
#include "mythverbose.h"
#include "compat.h"
#include "mcodecs.h"
diff --git a/mythtv/libs/libmythdb/lcddevice.cpp b/mythtv/libs/libmythdb/lcddevice.cpp
index 9fbe7d2..3c8ebf7 100644
--- a/mythtv/libs/libmythdb/lcddevice.cpp
+++ b/mythtv/libs/libmythdb/lcddevice.cpp
@@ -12,6 +12,7 @@
#include <cmath>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
# ifdef linux
# include <sys/vfs.h>
diff --git a/mythtv/libs/libmythdb/mythdbcon.cpp b/mythtv/libs/libmythdb/mythdbcon.cpp
index aa7c231..829f448 100644
--- a/mythtv/libs/libmythdb/mythdbcon.cpp
+++ b/mythtv/libs/libmythdb/mythdbcon.cpp
@@ -1,5 +1,6 @@
// ANSI C
#include <cstdlib>
+#include <unistd.h>
// Qt
#include <QVector>
diff --git a/mythtv/libs/libmythdb/mythdownloadmanager.cpp b/mythtv/libs/libmythdb/mythdownloadmanager.cpp
index 3db0400..8d43c49 100644
--- a/mythtv/libs/libmythdb/mythdownloadmanager.cpp
+++ b/mythtv/libs/libmythdb/mythdownloadmanager.cpp
@@ -6,6 +6,8 @@
#include <QDir>
#include <QThreadPool>
+#include <unistd.h>
+
// libmythdb
#include "stdlib.h"
#include "compat.h"
diff --git a/mythtv/libs/libmythdb/mythsocket.cpp b/mythtv/libs/libmythdb/mythsocket.cpp
index 476b38b..db4b728 100644
--- a/mythtv/libs/libmythdb/mythsocket.cpp
+++ b/mythtv/libs/libmythdb/mythsocket.cpp
@@ -2,6 +2,7 @@
#include <cstdlib>
#include <cassert>
#include <cerrno>
+#include <unistd.h>
#include "compat.h"
diff --git a/mythtv/libs/libmythdb/mythsocketthread.cpp b/mythtv/libs/libmythdb/mythsocketthread.cpp
index 2d66e93..4e94e15 100644
--- a/mythtv/libs/libmythdb/mythsocketthread.cpp
+++ b/mythtv/libs/libmythdb/mythsocketthread.cpp
@@ -14,6 +14,7 @@
#include <sys/types.h> // for fnctl
#include <fcntl.h> // for fnctl
#include <errno.h> // for checking errno
+#include <unistd.h> // for read, write, close, pipe
#ifndef O_NONBLOCK
#define O_NONBLOCK 0 /* not actually supported in MINGW */
diff --git a/mythtv/libs/libmythdb/remotefile.cpp b/mythtv/libs/libmythdb/remotefile.cpp
index 1ed570a..08b9bc7 100644
--- a/mythtv/libs/libmythdb/remotefile.cpp
+++ b/mythtv/libs/libmythdb/remotefile.cpp
@@ -1,6 +1,7 @@
#include <iostream>
using namespace std;
+#include <unistd.h>
#include <QUrl>
#include "mythconfig.h"
diff --git a/mythtv/libs/libmythtv/audioinputoss.cpp b/mythtv/libs/libmythtv/audioinputoss.cpp
index 3a9ae5e..5884937 100644
--- a/mythtv/libs/libmythtv/audioinputoss.cpp
+++ b/mythtv/libs/libmythtv/audioinputoss.cpp
@@ -30,6 +30,7 @@
#include "audioinputoss.h"
#include "mythverbose.h"
#include <fcntl.h>
+#include <unistd.h>
#include <sys/ioctl.h>
#define LOC QString("AudioInOSS: ")
diff --git a/mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp b/mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp
index 0b9b379..ce16b9f 100644
--- a/mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp
+++ b/mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp
@@ -1,3 +1,5 @@
+#include <unistd.h>
+
#include "privatedecoder_crystalhd.h"
#include "myth_imgconvert.h"
diff --git a/mythtv/libs/libmythui/mythrender_vdpau.cpp b/mythtv/libs/libmythui/mythrender_vdpau.cpp
index 4bc6649..8e5415d 100644
--- a/mythtv/libs/libmythui/mythrender_vdpau.cpp
+++ b/mythtv/libs/libmythui/mythrender_vdpau.cpp
@@ -1,4 +1,5 @@
#include "math.h"
+#include <unistd.h>
#include <QSize>
diff --git a/mythtv/libs/libmythupnp/upnpdevice.cpp b/mythtv/libs/libmythupnp/upnpdevice.cpp
index dbe08b3..5ef913e 100644
--- a/mythtv/libs/libmythupnp/upnpdevice.cpp
+++ b/mythtv/libs/libmythupnp/upnpdevice.cpp
@@ -26,6 +26,7 @@
#include "httpcomms.h"
#include <cerrno>
+#include <unistd.h>
#include <QFile>
#include <QTextStream>
diff --git a/mythtv/libs/libmythupnp/upnptasknotify.cpp b/mythtv/libs/libmythupnp/upnptasknotify.cpp
index 594160c..4d4891a 100644
--- a/mythtv/libs/libmythupnp/upnptasknotify.cpp
+++ b/mythtv/libs/libmythupnp/upnptasknotify.cpp
@@ -23,6 +23,7 @@
// ANSI C headers
#include <cstdlib>
+#include <unistd.h>
// Qt headers
#include <QStringList>
diff --git a/mythtv/libs/libmythupnp/upnptasksearch.cpp b/mythtv/libs/libmythupnp/upnptasksearch.cpp
index b824bca..7b6241e 100644
--- a/mythtv/libs/libmythupnp/upnptasksearch.cpp
+++ b/mythtv/libs/libmythupnp/upnptasksearch.cpp
@@ -23,6 +23,7 @@
#include <compat.h>
#include <stdlib.h>
+#include <unistd.h>
#include <QStringList>
#include <QFile>