1 diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c
2 index 398178e..929dc7c 100644
3 --- a/hw/xfree86/dri/dri.c
4 +++ b/hw/xfree86/dri/dri.c
5 @@ -2500,7 +2500,11 @@ drmInstallSIGIOHandler(int fd, void (*f) (int, void *, void *))
6 entry = drmGetEntry(fd);
9 +#if defined(__sun) && defined(__SVR4)
12 return xf86InstallSIGIOHandler(fd, drmSIGIOHandler, 0);
17 @@ -2510,5 +2514,9 @@ drmRemoveSIGIOHandler(int fd)
21 +#if defined(__sun) && defined(__SVR4)
24 return xf86RemoveSIGIOHandler(fd);