summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevon <mythtv@reidsresidence.com>2012-04-10 18:45:14 (GMT)
committer Gavin Hurlbut <ghurlbut@mythtv.org>2012-04-10 22:51:02 (GMT)
commited67f148adbe5b3122643ccfebca625e9b5ea12f (patch)
treeb0ebc5dab1106366825308373567baa1c241906d
parenta1db7b11e8303f3d546a87cd98c2b910a7ea805a (diff)
Make mythtv more compatible with GCC 4.7
Fixes #10537 Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org> Cherry-picked from 19a7e0131146d38bfe384da55fc4c16193f2b54e
-rw-r--r--mythtv/libs/libmyth/rssparse.h1
-rw-r--r--mythtv/libs/libmythdb/compat.h2
-rw-r--r--mythtv/libs/libmythtv/audioinput.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/mythtv/libs/libmyth/rssparse.h b/mythtv/libs/libmyth/rssparse.h
index 09cedbb..a7b41b3 100644
--- a/mythtv/libs/libmyth/rssparse.h
+++ b/mythtv/libs/libmyth/rssparse.h
@@ -13,6 +13,7 @@ using namespace std;
#include <QPair>
#include <QMap>
#include <QVariant>
+#include <sys/types.h>
#include "mythexp.h"
diff --git a/mythtv/libs/libmythdb/compat.h b/mythtv/libs/libmythdb/compat.h
index 54a8b02..24a793b 100644
--- a/mythtv/libs/libmythdb/compat.h
+++ b/mythtv/libs/libmythdb/compat.h
@@ -53,6 +53,8 @@
#include <sys/resource.h> // for setpriority
#include <sys/socket.h>
#include <sys/wait.h> // For WIFEXITED on Mac OS X
+#include <stdio.h> // for snprintf(), used by inline dlerror()
+#include <unistd.h> // for usleep()
#endif
#ifdef USING_MINGW
diff --git a/mythtv/libs/libmythtv/audioinput.h b/mythtv/libs/libmythtv/audioinput.h
index 67f05d1..9155349 100644
--- a/mythtv/libs/libmythtv/audioinput.h
+++ b/mythtv/libs/libmythtv/audioinput.h
@@ -22,6 +22,7 @@
#define _AUDIOINPUT_H_
#include <QString>
+#include <unistd.h>
class AudioInput
{