From 1813cab570d8d99fc28972c712426170e53821d0 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 14 Jan 2017 18:16:12 +0000 Subject: comms/rtl-sdr: unbreak build with clang 4.0 rtl_adsb.o: In function `manchester': rtl_adsb.c:(.text+0x69e): undefined reference to `preamble' cc: error: linker command failed with exit code 1 (use -v to see invocation) PR: 216048 --- comms/rtl-sdr/Makefile | 2 +- comms/rtl-sdr/files/patch-src_rtl__adsb.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 comms/rtl-sdr/files/patch-src_rtl__adsb.c diff --git a/comms/rtl-sdr/Makefile b/comms/rtl-sdr/Makefile index 1564fbdeae11..9ebb735db7cb 100644 --- a/comms/rtl-sdr/Makefile +++ b/comms/rtl-sdr/Makefile @@ -3,7 +3,7 @@ PORTNAME= rtl-sdr PORTVERSION= 20140210 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= comms hamradio MASTER_SITES= http://contribs.martymac.org/FreeBSD-ports/distfiles/ \ LOCAL/martymac diff --git a/comms/rtl-sdr/files/patch-src_rtl__adsb.c b/comms/rtl-sdr/files/patch-src_rtl__adsb.c new file mode 100644 index 000000000000..094621b0308b --- /dev/null +++ b/comms/rtl-sdr/files/patch-src_rtl__adsb.c @@ -0,0 +1,11 @@ +--- src/rtl_adsb.c.orig 2014-02-10 08:11:32 UTC ++++ src/rtl_adsb.c +@@ -231,7 +231,7 @@ inline uint16_t max16(uint16_t a, uint16 + return a>b ? a : b; + } + +-inline int preamble(uint16_t *buf, int i) ++static inline int preamble(uint16_t *buf, int i) + /* returns 0/1 for preamble at index i */ + { + int i2;