[OpenWrt-Devel] [PATCH] netifd: fix compilation with musl 1.2.0

Rosen Penev rosenp at gmail.com
Wed Mar 25 07:23:50 EDT 2020



Sent from my iPhone

> On Mar 25, 2020, at 1:27 AM, Petr Štetiar <ynezz at true.cz> wrote:
> 
> Rosen Penev <rosenp at gmail.com> [2020-03-24 22:56:19]:
> 
> Hi,
> 
>> --- a/system-linux.c
>> +++ b/system-linux.c
>> @@ -59,6 +59,10 @@
>> #define IFA_FLAGS (IFA_MULTICAST + 1)
>> #endif
>> 
>> +#ifndef __NR_clock_gettime
>> +#define __NR_clock_gettime __NR_clock_gettime64
>> +#endif
> 
> could you fix it by removing that probably now obsolete workaround by
> replacing that syscall() with direct clock_gettime()? Thanks!
The reasoning given in one of these projects is to avoid a dependency on librt. But given that it’s only a glibc problem, why not.
> 
> -- ynezz

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list