diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:16:45 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:16:45 -0300 |
commit | ac414c5581b2f45630e6004d5acef125889eb610 (patch) | |
tree | ed474377e91df5a9ad8e8134e781d5bad922e0fe /platform/x11/os_x11.cpp | |
parent | 38ab47d2f9547f73438e3cdb2752bd58e81634bf (diff) | |
parent | b14c90801f99fe97cb445a56036eefeedfe720db (diff) |
Merge pull request #2849 from a12n/compobsd2
Compile on OpenBSD
Diffstat (limited to 'platform/x11/os_x11.cpp')
-rw-r--r-- | platform/x11/os_x11.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 74ebad748a..4f1b475d06 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -32,6 +32,7 @@ #include "key_mapping_x11.h" #include <stdio.h> #include <stdlib.h> +#include <string.h> #include "print_string.h" #include "servers/physics/physics_server_sw.h" #include "errno.h" @@ -1672,7 +1673,7 @@ void OS_X11::close_joystick(int p_id) { }; void OS_X11::probe_joystick(int p_id) { - #ifndef __FreeBSD__ + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) if (p_id == -1) { @@ -1727,7 +1728,7 @@ void OS_X11::move_window_to_foreground() { } void OS_X11::process_joysticks() { - #ifndef __FreeBSD__ + #if !defined(__FreeBSD__) && !defined(__OpenBSD__) int bytes; js_event events[32]; InputEvent ievent; |