summaryrefslogtreecommitdiff
path: root/src/user/app/drawmouse/drawmouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/drawmouse/drawmouse.c')
-rw-r--r--src/user/app/drawmouse/drawmouse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/drawmouse/drawmouse.c b/src/user/app/drawmouse/drawmouse.c
index 47e8e8a..6ddfc79 100644
--- a/src/user/app/drawmouse/drawmouse.c
+++ b/src/user/app/drawmouse/drawmouse.c
@@ -1,3 +1,4 @@
+#include <camellia/flags.h>
#include <camellia/syscalls.h>
#include <shared/container/ring.h>
#include <stdbool.h>
@@ -49,7 +50,7 @@ struct packet {
int main(void) {
char buf[64];
- handle_t fd = _syscall_open("/kdev/ps2/mouse", 15, 0);
+ handle_t fd = _syscall_open("/kdev/ps2/mouse", 15, OPEN_READ);
if (fd < 0) {
eprintf("couldn't open mouse");
return 1;