On Mon, Aug 13, 2012 at 02:12:47PM +0900, OBATA Akio wrote:
Failed to build on NetBSD-5.1.2-i386:
Making all in intel
CC intel_bufmgr_gem.lo
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_reference':
intel_bufmgr_gem.c:392: warning: pointer targets in passing argument 1 of
'atomic_inc_uint' differ in signedness
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_unreference_locked_timed':
intel_bufmgr_gem.c:1111: warning: pointer targets in passing argument 1 of
'atomic_dec_uint_nv' differ in signedness
intel_bufmgr_gem.c: In function 'drm_intel_gem_bo_unreference':
intel_bufmgr_gem.c:1120: warning: pointer targets in passing argument 1 of
'atomic_dec_uint_nv' differ in signedness
intel_bufmgr_gem.c: In function 'drm_intel_bo_gem_export_to_prime':
intel_bufmgr_gem.c:2479: error: 'O_CLOEXEC' undeclared (first use in this
function)
intel_bufmgr_gem.c:2479: error: (Each undeclared identifier is reported only
once
intel_bufmgr_gem.c:2479: error: for each function it appears in.)
*** Error code 1
Does the attached patch fix the problem for you?
Thomas