1124N/Adiff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c
1340N/Aindex 398178e..929dc7c 100644
1124N/A--- a/hw/xfree86/dri/dri.c
1124N/A+++ b/hw/xfree86/dri/dri.c
1340N/A@@ -2500,7 +2500,11 @@ drmInstallSIGIOHandler(int fd, void (*f) (int, void *, void *))
1276N/A entry = drmGetEntry(fd);
1276N/A entry->f = f;
158N/A
158N/A+#if defined(__sun) && defined(__SVR4)
158N/A+ return 1;
158N/A+#else
158N/A return xf86InstallSIGIOHandler(fd, drmSIGIOHandler, 0);
158N/A+#endif
158N/A }
158N/A
1276N/A int
1340N/A@@ -2510,5 +2514,9 @@ drmRemoveSIGIOHandler(int fd)
158N/A
158N/A entry->f = NULL;
158N/A
158N/A+#if defined(__sun) && defined(__SVR4)
158N/A+ return 1;
158N/A+#else
158N/A return xf86RemoveSIGIOHandler(fd);
158N/A+#endif
158N/A }