summaryrefslogtreecommitdiff
path: root/driver/xf86-input-mouse/src/hurd_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/xf86-input-mouse/src/hurd_mouse.c')
-rw-r--r--driver/xf86-input-mouse/src/hurd_mouse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/xf86-input-mouse/src/hurd_mouse.c b/driver/xf86-input-mouse/src/hurd_mouse.c
index 089cba38d..4dac225d9 100644
--- a/driver/xf86-input-mouse/src/hurd_mouse.c
+++ b/driver/xf86-input-mouse/src/hurd_mouse.c
@@ -21,11 +21,11 @@
*
*/
-#define NEED_EVENTS
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
+#include <xorg-server.h>
#include <X11/X.h>
#include <X11/Xproto.h>
#include "inputstr.h"
@@ -171,7 +171,7 @@ OsMousePreInit(InputInfoPtr pInfo, const char *protocol, int flags)
static const char *
FindDevice(InputInfoPtr pInfo, const char *protocol, int flags)
{
- const char path[] = DEFAULT_MOUSE_DEV;
+ static const char path[] = DEFAULT_MOUSE_DEV;
int fd;
SYSCALL (fd = open(path, O_RDWR | O_NONBLOCK | O_EXCL));