Use the gcc specific __GNUC__ and __GNUC__ minor to determine gcc version
rather than using the GNU libc specific __GNUC_PREREQ.
This fixes the following compile error with musl libc:
src/descrambler/capmt.c:79:18: error: missing binary operator before token "("
#if __GNUC_PREREQ(4, 3)
^
Rather than check for specific glibc version on PLATFORM_LINUX, check
the existance of qsort_r.
This fixes the following compile error with musl libc:
CC src/main.o
In file included from src/main.c:39:0:
src/tvheadend.h:608:20: error: missing binary operator before token "("
#if !__GLIBC_PREREQ(2,8)
^
src/descrambler/capmt.c:485: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:487: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:538: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:549: warning: comparison is always false due to limited range of data type
I've removed some of the bounds checking, not a bad thing to have it, but
in general we work on the principle that if the user really is trying hard
enough to pass broken values, then so be it!
Also correct some spelling mistakes and change UI refs to "Unicable" rather
than the standard "EN50494".
This overcomes issues with multi-frontend tuners that change the
tuner name based on the selected frontend. We simply force the selection
of the first available frontend, which should keep things constant.
pretty basic, but enough to get me started on the things I want to do for
dynamic dvb adapters, now I've given up on using udev (for various reasons).
Will probably want to migrate DVR inotify stuff onto this framework eventually.
when execinfo is enabled.
src/trap.c:144: error: 'Dl_info' undeclared (first use in this function)
src/trap.c:144: error: expected ';' before 'dli'
cc1: warnings being treated as errors
src/trap.c:187: warning: implicit declaration of function 'dladdr'
src/trap.c:187: error: 'dli' undeclared (first use in this function)