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

2018-03-20 Thread Emil Velikov
On 19 March 2018 at 14:41, Eric Engestrom wrote: > On Monday, 2018-03-19 06:47:32 -0700, John Stultz wrote: >> 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

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

2018-03-19 Thread Eric Engestrom
On Monday, 2018-03-19 06:47:32 -0700, John Stultz wrote: > 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(sysd

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

2018-03-19 Thread Emil Velikov
On 19 March 2018 at 13:47, John Stultz wrote: > 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,

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

2018-03-19 Thread 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, &ent) == 0 && ent != NULL) { ^ Thus, this p