From: Eric Anholt Date: Sat, 22 Feb 2003 18:40:12 +0000 (+0000) Subject: Fix build on NetBSD. X-Git-Tag: submit/1.0/20121108.012404~2416 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b487f30ea5c129eed1dd85f7ad79db3d2485b1f8;p=profile%2Fivi%2Flibdrm.git Fix build on NetBSD. --- diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c index 0e0dc1a..994f1d6 100644 --- a/bsd-core/drm_drv.c +++ b/bsd-core/drm_drv.c @@ -991,7 +991,7 @@ int DRM(close)(dev_t kdev, int flags, int fmt, DRM_STRUCTPROC *p) #if 0 atomic_inc( &dev->total_sleeps ); #endif - retcode = tsleep(&dev->lock.lock_queue, + retcode = tsleep((void *)&dev->lock.lock_queue, PZERO|PCATCH, "drmlk2", 0); diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h index 0e0dc1a..994f1d6 100644 --- a/bsd/drm_drv.h +++ b/bsd/drm_drv.h @@ -991,7 +991,7 @@ int DRM(close)(dev_t kdev, int flags, int fmt, DRM_STRUCTPROC *p) #if 0 atomic_inc( &dev->total_sleeps ); #endif - retcode = tsleep(&dev->lock.lock_queue, + retcode = tsleep((void *)&dev->lock.lock_queue, PZERO|PCATCH, "drmlk2", 0);