Re: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-21 Thread Florian Fainelli
On 09/21/2016 01:34 PM, Etienne Champetier wrote: > Hi Florian, > > 2016-09-18 21:36 GMT+02:00 Florian Fainelli : >> >> Le 18/09/2016 à 12:06, Etienne Champetier a écrit : >>> (Answering from my phone with gmail so this email is in HTML and will >>> get bounced by the ML) >>> >>> Le 18 sept. 2016

Re: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-21 Thread Etienne Champetier
Hi Florian, 2016-09-18 21:36 GMT+02:00 Florian Fainelli : > > Le 18/09/2016 à 12:06, Etienne Champetier a écrit : > > (Answering from my phone with gmail so this email is in HTML and will > > get bounced by the ML) > > > > Le 18 sept. 2016 14:03, "John Crispin" > > a écri

Re: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-18 Thread Florian Fainelli
Le 18/09/2016 à 12:06, Etienne Champetier a écrit : > (Answering from my phone with gmail so this email is in HTML and will > get bounced by the ML) > > Le 18 sept. 2016 14:03, "John Crispin" > a écrit : >> >> >> >> On 18/09/2016 02:13, Florian Fainelli wrote: >> > Le 17/

Re: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-18 Thread John Crispin
On 18/09/2016 02:13, Florian Fainelli wrote: > Le 17/09/2016 à 16:49, Etienne Champetier a écrit : >> Hi Florian, >> >> What is your use case? > > Pre-built toolchain which ships with kernel headers 3.8 at the moment. > >> If you run it on kernel less than 3.17 this will then fail at run time .

Re: [LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-17 Thread Florian Fainelli
Le 17/09/2016 à 16:49, Etienne Champetier a écrit : > Hi Florian, > > What is your use case? Pre-built toolchain which ships with kernel headers 3.8 at the moment. > If you run it on kernel less than 3.17 this will then fail at run time ... I run a kernel newer than 3.17, but that's a good poin

[LEDE-DEV] [PATCH ubox] getrandom: Define SYS_getrandom if no definition exists

2016-09-17 Thread Florian Fainelli
Building ubox against kernel headers earlier than 3.17 would fail since SYS_getrandom was not defined, so provide a definition for it. Signed-off-by: Florian Fainelli --- getrandom.c | 4 1 file changed, 4 insertions(+) diff --git a/getrandom.c b/getrandom.c index 96712028589b..e324072fcf0