diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2015-04-08 18:25:41 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2015-04-08 22:58:47 -0700 |
commit | 5b7d9cf15ae44361a3de506916f769d8dfec61d1 (patch) | |
tree | af533c0b4c172b9f420de32c159f00e641e8fcb1 /tools | |
parent | c8ec00f537a640db049a1afb44a31c2199859085 (diff) |
vmmouse: Fix vmmouse_detect build on BSD
Tested with FreeBSD, but changes affect also OpenBSD and NetBSD to fix
compiling and linking with the relevant system libraries.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Sinclair Yeh <syeh@vmware.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/vmmouse_iopl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/vmmouse_iopl.c b/tools/vmmouse_iopl.c index 3b3fc0b..8794622 100644 --- a/tools/vmmouse_iopl.c +++ b/tools/vmmouse_iopl.c @@ -43,10 +43,9 @@ #include <stdbool.h> #if defined(VMMOUSE_OS_BSD) -#define HAVE_WRAPPER_DECLS -#include "xf86_OSlib.h" -#include "xf86OSpriv.h" +#include <sys/types.h> #ifdef USE_I386_IOPL +#include <machine/sysarch.h> /***************************************************************************/ /* I/O Permissions section */ /***************************************************************************/ @@ -80,6 +79,7 @@ xf86DisableIO() #endif /* USE_I386_IOPL */ #ifdef USE_AMD64_IOPL +#include <machine/sysarch.h> /***************************************************************************/ /* I/O Permissions section */ /***************************************************************************/ @@ -114,6 +114,9 @@ xf86DisableIO() #endif /* USE_AMD64_IOPL */ #ifdef USE_DEV_IO +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> static int IoFd = -1; bool |