Ticket #12020: 0001-Fixes-for-FreeBSD-10.0-clang_mythtv_0.27.patch

File 0001-Fixes-for-FreeBSD-10.0-clang_mythtv_0.27.patch, 4.1 KB (added by Amar Takhar <verm@…>, 7 years ago)
  • mythtv/libs/libmyth/remoteutil.h

    From bcd7344c533bd0b4cf0b2ecaf82b570202bebccc Mon Sep 17 00:00:00 2001
    From: Amar Takhar <verm@darkbeer.org>
    Date: Wed, 15 Jan 2014 21:44:48 +0000
    Subject: [PATCH] Fixes for FreeBSD 10.0 + clang.
    
    ---
     mythtv/libs/libmyth/remoteutil.h                 | 2 ++
     mythtv/libs/libmythbase/mythmiscutil.h           | 1 +
     mythtv/libs/libmythbase/mythsystemlegacy.h       | 1 +
     mythtv/libs/libmythbase/mythtimer.cpp            | 2 ++
     mythtv/libs/libmythbase/mythtimezone.cpp         | 1 +
     mythtv/libs/libmythtv/recorders/dvbdev/dvbci.cpp | 6 +++++-
     mythtv/libs/libmythui/mythgesture.cpp            | 1 +
     mythtv/libs/libmythui/mythpainter.cpp            | 1 +
     mythtv/libs/libmythupnp/mmulticastsocketdevice.h | 4 ++++
     9 files changed, 18 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmyth/remoteutil.h b/mythtv/libs/libmyth/remoteutil.h
    index 7acff6a..4dc6a54 100644
    a b  
    11#ifndef REMOTEUTIL_H_
    22#define REMOTEUTIL_H_
    33
     4#include <time.h>
     5
    46#include <QStringList>
    57#include <QDateTime>
    68
  • mythtv/libs/libmythbase/mythmiscutil.h

    diff --git a/mythtv/libs/libmythbase/mythmiscutil.h b/mythtv/libs/libmythbase/mythmiscutil.h
    index bfb171e..91dea13 100644
    a b  
    22#define MYTHMISCUTIL_H_
    33
    44#include <stdint.h>
     5#include <time.h>
    56
    67#include <algorithm>
    78using namespace std;
  • mythtv/libs/libmythbase/mythsystemlegacy.h

    diff --git a/mythtv/libs/libmythbase/mythsystemlegacy.h b/mythtv/libs/libmythbase/mythsystemlegacy.h
    index 7a980a7..52d98ac 100644
    a b  
    4242
    4343// C headers
    4444#include <stdint.h>
     45#include <time.h>
    4546
    4647#ifdef __cplusplus
    4748
  • mythtv/libs/libmythbase/mythtimer.cpp

    diff --git a/mythtv/libs/libmythbase/mythtimer.cpp b/mythtv/libs/libmythbase/mythtimer.cpp
    index 3f5c0e9..bb176d4 100644
    a b  
    1919 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
    2020 */
    2121
     22#include <stdint.h>
     23
    2224// MythTV includes
    2325#include "mythtimer.h"
    2426
  • mythtv/libs/libmythbase/mythtimezone.cpp

    diff --git a/mythtv/libs/libmythbase/mythtimezone.cpp b/mythtv/libs/libmythbase/mythtimezone.cpp
    index ac20c5c..6bff6b3 100644
    a b  
    11#include "mythtimezone.h"
    22
    33#include <stdlib.h> // for malloc, getenv
     4#include <time.h>
    45
    56#include <QDataStream>
    67#include <QTextStream>
  • mythtv/libs/libmythtv/recorders/dvbdev/dvbci.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/dvbdev/dvbci.cpp b/mythtv/libs/libmythtv/recorders/dvbdev/dvbci.cpp
    index dc57840..f8e579a 100644
    a b  
    2828#include <errno.h>
    2929#include <ctype.h>
    3030#include <linux/dvb/ca.h>
    31 #include <malloc.h>
     31#ifdef __FreeBSD__
     32#  include <stdlib.h>
     33#else
     34#  include <malloc.h>
     35#endif
    3236#include <netinet/in.h>
    3337#include <poll.h>
    3438#include <string.h>
  • mythtv/libs/libmythui/mythgesture.cpp

    diff --git a/mythtv/libs/libmythui/mythgesture.cpp b/mythtv/libs/libmythui/mythgesture.cpp
    index 37846e4..f020f1a 100644
    a b  
    3030
    3131#include <cmath>
    3232#include <algorithm>
     33#include <complex>
    3334
    3435#include <QMutex>
    3536#include <QMap>
  • mythtv/libs/libmythui/mythpainter.cpp

    diff --git a/mythtv/libs/libmythui/mythpainter.cpp b/mythtv/libs/libmythui/mythpainter.cpp
    index c821a7b..29b063c 100644
    a b  
    11#include <stdint.h>
    22#include <algorithm>
     3#include <complex>
    34
    45// QT headers
    56#include <QRect>
  • mythtv/libs/libmythupnp/mmulticastsocketdevice.h

    diff --git a/mythtv/libs/libmythupnp/mmulticastsocketdevice.h b/mythtv/libs/libmythupnp/mmulticastsocketdevice.h
    index ad793f9..b2d345d 100644
    a b  
    1313#ifndef _MULTICAST_SOCKET_DEVICE_H_
    1414#define _MULTICAST_SOCKET_DEVICE_H_
    1515
     16#ifdef __FreeBSD__
     17# include <sys/types.h>
     18#endif
     19
    1620#ifdef _WIN32
    1721# ifndef _MSC_VER
    1822#  include <ws2tcpip.h>