summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xserver/hw/xfree86/os-support/bsd/bsd_kqueue_apm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xserver/hw/xfree86/os-support/bsd/bsd_kqueue_apm.c b/xserver/hw/xfree86/os-support/bsd/bsd_kqueue_apm.c
index b37070c37..d86496f85 100644
--- a/xserver/hw/xfree86/os-support/bsd/bsd_kqueue_apm.c
+++ b/xserver/hw/xfree86/os-support/bsd/bsd_kqueue_apm.c
@@ -156,6 +156,7 @@ bsdPMConfirmEventToOs(int dummyfd, pmEvent event)
PMClose
xf86OSPMOpen(void)
{
+#ifndef __OpenBSD__
int kq;
struct kevent ev;
@@ -179,6 +180,7 @@ xf86OSPMOpen(void)
xf86PMGetEventFromOs = bsdPMGetEventFromOS;
xf86PMConfirmEventToOs = bsdPMConfirmEventToOs;
APMihPtr = xf86AddInputHandler(kq, xf86HandlePMEvents, NULL);
+#endif /* __OpenBSD__ */
return bsdCloseAPM;
}