Skip to content

Commit

Permalink
Make mythtv compile better with GCC 4.7
Browse files Browse the repository at this point in the history
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 a1db7b1
Show file tree
Hide file tree
Showing 14 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmyth/programinfoupdater.cpp
@@ -1,3 +1,5 @@
#include <unistd.h>

#include "programinfoupdater.h"
#include "remoteutil.h"
#include "compat.h"
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythdb/httpcomms.cpp
Expand Up @@ -6,6 +6,8 @@ using namespace std;
#include <QTimer>
#include <QFile>

#include <unistd.h>

#include "mythverbose.h"
#include "compat.h"
#include "mcodecs.h"
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythdb/lcddevice.cpp
Expand Up @@ -12,6 +12,7 @@
#include <cmath>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>

# ifdef linux
# include <sys/vfs.h>
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythdb/mythdbcon.cpp
@@ -1,5 +1,6 @@
// ANSI C
#include <cstdlib>
#include <unistd.h>

// Qt
#include <QVector>
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythdb/mythdownloadmanager.cpp
Expand Up @@ -6,6 +6,8 @@
#include <QDir>
#include <QThreadPool>

#include <unistd.h>

// libmythdb
#include "stdlib.h"
#include "compat.h"
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythdb/mythsocket.cpp
Expand Up @@ -2,6 +2,7 @@
#include <cstdlib>
#include <cassert>
#include <cerrno>
#include <unistd.h>

#include "compat.h"

Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythdb/mythsocketthread.cpp
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythdb/remotefile.cpp
@@ -1,6 +1,7 @@
#include <iostream>
using namespace std;

#include <unistd.h>
#include <QUrl>

#include "mythconfig.h"
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/audioinputoss.cpp
Expand Up @@ -30,6 +30,7 @@
#include "audioinputoss.h"
#include "mythverbose.h"
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>

#define LOC QString("AudioInOSS: ")
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/privatedecoder_crystalhd.cpp
@@ -1,3 +1,5 @@
#include <unistd.h>

#include "privatedecoder_crystalhd.h"
#include "myth_imgconvert.h"

Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythui/mythrender_vdpau.cpp
@@ -1,4 +1,5 @@
#include "math.h"
#include <unistd.h>

#include <QSize>

Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythupnp/upnpdevice.cpp
Expand Up @@ -26,6 +26,7 @@
#include "httpcomms.h"

#include <cerrno>
#include <unistd.h>

#include <QFile>
#include <QTextStream>
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythupnp/upnptasknotify.cpp
Expand Up @@ -23,6 +23,7 @@

// ANSI C headers
#include <cstdlib>
#include <unistd.h>

// Qt headers
#include <QStringList>
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythupnp/upnptasksearch.cpp
Expand Up @@ -23,6 +23,7 @@

#include <compat.h>
#include <stdlib.h>
#include <unistd.h>

#include <QStringList>
#include <QFile>
Expand Down

0 comments on commit a1db7b1

Please sign in to comment.