Re: [PATCH libdrm v2] libdrm: Use readdir instead of readdir_r to avoid build warnings

2018-03-26 Thread John Stultz
On Thu, Mar 22, 2018 at 9:51 AM, Emil Velikov wrote: > On 20 March 2018 at 18:17, Eric Engestrom wrote: >> On Tuesday, 2018-03-20 17:48:23 +, Emil Velikov wrote: >>> From: John Stultz >>> >>> Building libdrm under

Re: [PATCH libdrm v2] libdrm: Use readdir instead of readdir_r to avoid build warnings

2018-03-22 Thread Emil Velikov
On 20 March 2018 at 18:17, Eric Engestrom wrote: > On Tuesday, 2018-03-20 17:48:23 +, Emil Velikov wrote: >> From: John Stultz >> >> Building libdrm under AOSP, we see the following build warning: >> external/libdrm/xf86drm.c:2861:12:

Re: [PATCH libdrm v2] libdrm: Use readdir instead of readdir_r to avoid build warnings

2018-03-20 Thread Eric Engestrom
On Tuesday, 2018-03-20 17:48:23 +, Emil Velikov wrote: > From: John Stultz > > Building libdrm under AOSP, we see the following build warning: > external/libdrm/xf86drm.c:2861:12: warning: 'readdir_r' is deprecated: > readdir_r is deprecated; use readdir instead

[PATCH libdrm v2] libdrm: Use readdir instead of readdir_r to avoid build warnings

2018-03-20 Thread Emil Velikov
From: John Stultz Building libdrm under AOSP, we see the following build warning: external/libdrm/xf86drm.c:2861:12: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations] while (readdir_r(sysdir, pent, ) == 0 &&