Skip to content
Browse files

Make mythtv more compatible with GCC 4.7

Fixes #10537

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
1 parent bb58a94 commit 19a7e0131146d38bfe384da55fc4c16193f2b54e Kevon committed with Beirdo Apr 10, 2012
View
3 mythplugins/mythzoneminder/mythzmserver/zmserver.cpp
@@ -24,10 +24,7 @@
#include <netinet/in.h>
#include <sys/stat.h>
#include <sys/shm.h>
-
-#if _POSIX_MAPPED_FILES > 0L
#include <sys/mman.h>
-#endif
#ifdef linux
# include <sys/vfs.h>
View
1 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"
View
2 mythtv/libs/libmythbase/compat.h
@@ -44,6 +44,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
View
1 mythtv/libs/libmythtv/audioinput.h
@@ -22,6 +22,7 @@
#define _AUDIOINPUT_H_
#include <QString>
+#include <unistd.h>
class AudioInput
{

0 comments on commit 19a7e01

Please sign in to comment.
Something went wrong with that request. Please try again.