Skip to content

Commit 81f2f53

Browse files
committed
fix compilation on musl
this should allow for compilation on musl libc possibly fixes #150
1 parent 7d3c1d1 commit 81f2f53

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/decode_aprs.c

-4
Original file line numberDiff line numberDiff line change
@@ -3930,11 +3930,7 @@ static void decode_tocall (decode_aprs_t *A, char *dest)
39303930
* models before getting to the more generic APY.
39313931
*/
39323932

3933-
#if defined(__WIN32__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
39343933
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp);
3935-
#else
3936-
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), (__compar_fn_t)tocall_cmp);
3937-
#endif
39383934
}
39393935
else {
39403936
if ( ! A->g_quiet) {

src/direwolf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ char *strtok_r(char *str, const char *delim, char **saveptr);
282282
char *strcasestr(const char *S, const char *FIND);
283283

284284

285-
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
285+
#if ! defined(__GLIBC__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
286286

287287
// strlcpy and strlcat should be in string.h and the C library.
288288

0 commit comments

Comments
 (0)