summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2002-10-27 05:24:33 +0000
committerEric Anholt <anholt@freebsd.org>2002-10-27 05:24:33 +0000
commit9f21f02217dd8b81886f042ce1af99d61de9a218 (patch)
tree34bf56af1eb75e193ef125787d60f97a30ad9599
parentb3a20ce219b353aa3e2b7f3b47ffd28b279557c7 (diff)
Catch up to -current.
-rw-r--r--bsd-core/drm_drv.c4
-rw-r--r--bsd/drm_drv.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index 872f6bc6..4a6fc15f 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -1037,7 +1037,11 @@ int DRM(ioctl)( DRM_IOCTL_ARGS )
case FIOGETOWN:
atomic_dec(&dev->ioctl_count);
+#if (__FreeBSD_version >= 500000)
+ *(int *) data = fgetown(&dev->buf_sigio);
+#else
*(int *) data = fgetown(dev->buf_sigio);
+#endif
return 0;
}
#endif /* __FreeBSD__ */
diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h
index 872f6bc6..4a6fc15f 100644
--- a/bsd/drm_drv.h
+++ b/bsd/drm_drv.h
@@ -1037,7 +1037,11 @@ int DRM(ioctl)( DRM_IOCTL_ARGS )
case FIOGETOWN:
atomic_dec(&dev->ioctl_count);
+#if (__FreeBSD_version >= 500000)
+ *(int *) data = fgetown(&dev->buf_sigio);
+#else
*(int *) data = fgetown(dev->buf_sigio);
+#endif
return 0;
}
#endif /* __FreeBSD__ */