Pull Request 394 - fix compilation on musl

This commit is contained in:
wb2osz 2022-05-24 02:03:37 +01:00
parent c9ffbd71c3
commit 59288b7c56
1 changed files with 10 additions and 4 deletions

View File

@ -204,6 +204,15 @@ void decode_aprs (decode_aprs_t *A, packet_t pp, int quiet, int third_party)
A->g_footprint_lon = G_UNKNOWN; A->g_footprint_lon = G_UNKNOWN;
A->g_footprint_radius = G_UNKNOWN; A->g_footprint_radius = G_UNKNOWN;
// TODO: Complain if obsolete WIDE or RELAY is found in via path.
// TODO: complain if unused WIDEn is see in path.
// There is a report of UIDIGI decrementing ssid 1 to 0 and not marking it used.
// http://lists.tapr.org/pipermail/aprssig_lists.tapr.org/2022-May/049397.html
// TODO: Complain if used digi is found after unused. Should never happen.
// If third-party header, try to decode just the payload. // If third-party header, try to decode just the payload.
if (*pinfo == '}') { if (*pinfo == '}') {
@ -4113,11 +4122,8 @@ static void decode_tocall (decode_aprs_t *A, char *dest)
* models before getting to the more generic APY. * models before getting to the more generic APY.
*/ */
#if defined(__WIN32__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp); qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp);
#else
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), (__compar_fn_t)tocall_cmp);
#endif
} }
else { else {
if ( ! A->g_quiet) { if ( ! A->g_quiet) {