diff options
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r-- | plugins/gtkui/hotkeys.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c index 7b3d1664..4b7ac034 100644 --- a/plugins/gtkui/hotkeys.c +++ b/plugins/gtkui/hotkeys.c @@ -57,7 +57,9 @@ typedef struct #include "interface.h" #include "../libparser/parser.h" #include "../hotkeys/hotkeys.h" -//#include <X11/Xlib.h> // only for the KeySym type +#ifndef __APPLE__ +#include <X11/Xlib.h> // only for the KeySym type +#endif #include "hotkeys.h" #ifndef strdupa @@ -616,7 +618,11 @@ typedef struct { #define KEY(kname, kcode) { .name=kname, .keysym=kcode }, static const xkey_t keys[] = { -// #include "../hotkeys/keysyms.inc" +#ifndef __APPLE__ + #include "../hotkeys/keysyms.inc" +#else + { .name=NULL, .keysym=0 } +#endif }; static const char * |