Skip to content

Commit 1cc62dc

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/decode_aprs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3930,7 +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__)
3933+
#if ! defined(__GLIBC__) || defined(__WIN32__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__APPLE__)
39343934
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), tocall_cmp);
39353935
#else
39363936
qsort (tocalls, num_tocalls, sizeof(struct tocalls_s), (__compar_fn_t)tocall_cmp);

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)