Re: [PATCH] util/drm: make portable

2020-07-01 Thread Philippe Mathieu-Daudé
On 7/1/20 8:03 PM, Gerd Hoffmann wrote: > Given this isn't perforance critical at all lets avoid the non-portable > d_type and use fstat instead to check whenever the file is a chardev. > > Signed-off-by: Gerd Hoffmann Reported-by: David Carlier Reviewed-by: Philippe Mathieu-Daudé > --- > ut

[PATCH] util/drm: make portable

2020-07-01 Thread Gerd Hoffmann
Given this isn't perforance critical at all lets avoid the non-portable d_type and use fstat instead to check whenever the file is a chardev. Signed-off-by: Gerd Hoffmann --- util/drm.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/util/drm.c b/util/drm.c