readdir_r() has been deprecated in glibc-2.24, so trying to compile libdrm against those headers will give a deprecation warning.
Should be fixed with
Author: John Stultz <email@example.com>
Date: Tue Mar 20 17:48:23 2018 +0000
libdrm: Use readdir instead of readdir_r to avoid build warnings