diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-01-09 10:47:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-01-09 10:47:09 +0000 |
commit | e7e6b7669210b6956dca2411610eca21d3d058ec (patch) | |
tree | 1a87b5ab83b2d2959121b884ab477a58c3bbac31 /lib/libdrm/xf86drm.c | |
parent | 2c1fea411b0d94d18f7bdff1f7529ae922f06050 (diff) |
Enable more libdrm functions. Determine if modesetting is supported
based on a modesetting ioctl that checks the DRIVER_MODESET flag on
the kernel side instead of the sysfs approach linux takes.
ok mpi@
Diffstat (limited to 'lib/libdrm/xf86drm.c')
-rw-r--r-- | lib/libdrm/xf86drm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libdrm/xf86drm.c b/lib/libdrm/xf86drm.c index 038b28c8c..7a3992f11 100644 --- a/lib/libdrm/xf86drm.c +++ b/lib/libdrm/xf86drm.c @@ -819,7 +819,6 @@ drmVersionPtr drmGetLibVersion(int fd) int drmGetCap(int fd, uint64_t capability, uint64_t *value) { -#ifndef __OpenBSD__ struct drm_get_cap cap = { capability, 0 }; int ret; @@ -828,7 +827,6 @@ int drmGetCap(int fd, uint64_t capability, uint64_t *value) return ret; *value = cap.value; -#endif return 0; } |