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

2020-03-25 Thread Rosen Penev
Switched to the plain function instead of the now gone syscall. Added an rt link flag to fix compilation with glibc. Signed-off-by: Rosen Penev --- v2: switch to function CMakeLists.txt | 2 +- system-linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt

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

2020-03-25 Thread Rosen Penev
Sent from my iPhone > On Mar 25, 2020, at 1:27 AM, Petr Štetiar wrote: > > Rosen Penev [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 __N

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

2020-03-25 Thread Hans Dedecker
On Wed, Mar 25, 2020 at 9:27 AM Petr Štetiar wrote: > > Rosen Penev [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

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

2020-03-25 Thread Paul Oranje
Hi Rosen e.a. > Op 25 mrt. 2020, om 09:27 heeft Petr Štetiar het volgende > geschreven: > > Rosen Penev [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

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

2020-03-25 Thread Petr Štetiar
Rosen Penev [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

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

2020-03-24 Thread Rosen Penev
The normal syscall is removed. Use the 64 bit version as musl 1.2.0 defaults to a 64-bit time_t. Signed-off-by: Rosen Penev --- system-linux.c | 4 1 file changed, 4 insertions(+) diff --git a/system-linux.c b/system-linux.c index d533be8..ff4e1fe 100644 --- a/system-linux.c +++ b/system-l