freebsd-ports/multimedia/tvheadend/files/patch-src_main.c
Bernhard Froehlich cd52421acd - Update to 4.2.3
- Fix various portlint warnings
- Add missing LICENSE_FILE
- Update pkg-descr to match recent upstream development

The update was postponed a few times because early 4.2 releases
had some serious regressions on FreeBSD. I know that there are
still a few issues in the current release especially around IPTV
and SAT>IP but they do not seem to be FreeBSD specific. If you
run into regressions please let me know then we can still decide
if we need to keep tvheadend 4.0 around.

Thanks to all people for their patience and the people which helped
during the testing phase especially Rainer and Heiko!

Thanks to:	Rainer Hurling <rhurlin@gwdg.de>,
		Heiko Kirschke <heiko.kirschke@posteo.de>
2017-09-11 09:27:04 +00:00

62 lines
2 KiB
C

Avoid build error with recent clang on FreeBSD 12-CURRENT.
CC src/main.o
In file included from src/main.c:51:
In file included from
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/dvr/dvr.h:27:
/usr/local/include/profile.h:24:28: error: typedef redefinition with
different types ('struct _profile_t *' vs
'struct profile')
typedef struct _profile_t *profile_t;
^
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/profile.h:148:3:
note: previous definition is here
} profile_t;
^
In file included from src/main.c:51:
In file included from
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/dvr/dvr.h:27:
/usr/local/include/profile.h:45:20: error: conflicting types for
'profile_init'
long KRB5_CALLCONV profile_init
^
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/profile.h:197:6:
note: previous declaration is here
void profile_init(void);
^
In file included from src/main.c:51:
In file included from
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/dvr/dvr.h:27:
/usr/local/include/profile.h:71:20: error: conflicting types for
'profile_release'
void KRB5_CALLCONV profile_release
^
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/src/profile.h:159:20:
note: previous definition is here
static inline void profile_release( profile_t *pro )
^
3 errors generated.
gmake[2]: *** [Makefile:631:
/usr/ports/multimedia/tvheadend/work/tvheadend-4.2.2/build.freebsd/src/main.o]
Error 1
gmake[2]: Leaving directory
Reported by: Rainer Hurling <rhurlin@gwdg.de>
--- src/main.c.orig 2017-07-01 07:22:23.000000000 +0000
+++ src/main.c 2017-08-23 15:27:26.427162000 +0000
@@ -48,6 +48,7 @@
#include "subscriptions.h"
#include "service_mapper.h"
#include "descrambler.h"
+#include "profile.h"
#include "dvr/dvr.h"
#include "htsp_server.h"
#include "satip/server.h"
@@ -68,7 +69,6 @@
#include "intlconv.h"
#include "dbus.h"
#include "libav.h"
-#include "profile.h"
#include "bouquet.h"
#include "tvhtime.h"
#include "packet.h"