Ticket #12018: 0001-Fix-build-for-FreeBSD-10.0-clang.patch

File 0001-Fix-build-for-FreeBSD-10.0-clang.patch, 3.6 KB (added by Amar Takhar <verm@…>, 7 years ago)
  • mythtv/libs/libmyth/remoteutil.h

    From 73cb0f41e224c11afd6572fe19bd5702fad2026b Mon Sep 17 00:00:00 2001
    From: Amar Takhar <verm@darkbeer.org>
    Date: Wed, 15 Jan 2014 19:08:51 +0000
    Subject: [PATCH] Fix build 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/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 ++++
     8 files changed, 16 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/mythtimezone.cpp

    diff --git a/mythtv/libs/libmythbase/mythtimezone.cpp b/mythtv/libs/libmythbase/mythtimezone.cpp
    index 424bf7b..6a081a4 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 f2482f1..5d17684 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 83572d4..b9b75a5 100644
    a b  
    1313#ifndef _MULTICAST_SOCKET_DEVICE_H_
    1414#define _MULTICAST_SOCKET_DEVICE_H_
    1515
     16#ifdef __FreeBSD__ // for u_char, u_short
     17#include <sys/types.h>
     18#endif
     19
    1620#ifdef _WIN32
    1721# include <ws2tcpip.h>
    1822#else