libdrm fails to build on x86-solaris because of missing deceleration of ioctl in the files libdrm/nouveau/nouveau_bo.c and libdrm/radeon/radeon_bo_gem.c According to the solaris man page of ioctl there has to be the following includes: #include <unistd.h> #include <stropts.h> Pleas check if the includes break something on other platforms. Reproducible: Always Steps to Reproduce: 1. emerge libdrm (on solaris) 2. 3. Actual Results: the build stops with errors Expected Results: the package should build
Created attachment 206328 [details, diff] fixes includes
Created attachment 206330 [details, diff] fixes includes
Created attachment 206332 [details, diff] ebuild which includes both patches
unistd.h should never break, stropts.h needs a guard.
Created attachment 206629 [details, diff] libdrm-2.4.14-nouveau_bo.patch With __sun guard around includes
Created attachment 206631 [details, diff] libdrm-2.4.14-radeon_bo_gem.patch With __sun guard around includes
ok, applied, thanks!