Permalink
Browse files

Make mythtv compile better with GCC 4.7

Fixes #10309

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
hobbes1069 authored and Beirdo committed Apr 10, 2012
1 parent e9a0ecb commit a1db7b11e8303f3d546a87cd98c2b910a7ea805a
@@ -1,3 +1,5 @@
+#include <unistd.h>
+
#include "programinfoupdater.h"
#include "remoteutil.h"
#include "compat.h"
@@ -6,6 +6,8 @@ using namespace std;
#include <QTimer>
#include <QFile>
+#include <unistd.h>
+
#include "mythverbose.h"
#include "compat.h"
#include "mcodecs.h"
@@ -12,6 +12,7 @@
#include <cmath>
#include <fcntl.h>
#include <errno.h>
+#include <unistd.h>
# ifdef linux
# include <sys/vfs.h>
@@ -1,5 +1,6 @@
// ANSI C
#include <cstdlib>
+#include <unistd.h>
// Qt
#include <QVector>
@@ -6,6 +6,8 @@
#include <QDir>
#include <QThreadPool>
+#include <unistd.h>
+
// libmythdb
#include "stdlib.h"
#include "compat.h"
@@ -2,6 +2,7 @@
#include <cstdlib>
#include <cassert>
#include <cerrno>
+#include <unistd.h>
#include "compat.h"
@@ -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 */
@@ -1,6 +1,7 @@
#include <iostream>
using namespace std;
+#include <unistd.h>
#include <QUrl>
#include "mythconfig.h"
@@ -30,6 +30,7 @@
#include "audioinputoss.h"
#include "mythverbose.h"
#include <fcntl.h>
+#include <unistd.h>
#include <sys/ioctl.h>
#define LOC QString("AudioInOSS: ")
@@ -1,3 +1,5 @@
+#include <unistd.h>
+
#include "privatedecoder_crystalhd.h"
#include "myth_imgconvert.h"
@@ -1,4 +1,5 @@
#include "math.h"
+#include <unistd.h>
#include <QSize>
@@ -26,6 +26,7 @@
#include "httpcomms.h"
#include <cerrno>
+#include <unistd.h>
#include <QFile>
#include <QTextStream>
@@ -23,6 +23,7 @@
// ANSI C headers
#include <cstdlib>
+#include <unistd.h>
// Qt headers
#include <QStringList>
@@ -23,6 +23,7 @@
#include <compat.h>
#include <stdlib.h>
+#include <unistd.h>
#include <QStringList>
#include <QFile>

0 comments on commit a1db7b1

Please sign in to comment.