From bc5f64af1c017f60fffaa019bf7067ddddec5380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20B=C3=A9rub=C3=A9?= Date: Thu, 8 Aug 2024 19:26:33 -0400 Subject: [PATCH] Fixing the sysinfo conflict between toolchains, pre-defining the missing asprintf on uclibc --- src/network.h | 4 ++++ src/region.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/network.h b/src/network.h index 91df7ae..c9dd86e 100644 --- a/src/network.h +++ b/src/network.h @@ -8,5 +8,9 @@ #include #include +#ifdef __UCLIBC__ +extern int asprintf(char **restrict strp, const char *restrict fmt, ...); +#endif + int start_mdns(); void stop_mdns(); \ No newline at end of file diff --git a/src/region.h b/src/region.h index 77cc564..8674b4b 100644 --- a/src/region.h +++ b/src/region.h @@ -19,12 +19,16 @@ #include #include +#include #include #include #ifdef __UCLIBC__ -#include extern int asprintf(char **restrict strp, const char *restrict fmt, ...); +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0) +#include #else #include #endif