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