From: Dmitriy Evgenevich Gonzha Date: Thu, 9 Nov 2017 15:09:05 +0000 (+0300) Subject: Fix ASan build X-Git-Tag: submit/tizen/20180124.071405~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eca1ef11f6d23d2ad1b56fd9bdc33f38e55d703c;p=platform%2Fupstream%2Fenlightenment.git Fix ASan build Move variables from header to source to fix build with -fno-common Change-Id: I1897f8f0daacd6de74344248c85512b373255d88 Signed-off-by: Dmitriy Evgenevich Gonzha --- diff --git a/src/bin/e_input_device.c b/src/bin/e_input_device.c index 974e999522..af449d327b 100644 --- a/src/bin/e_input_device.c +++ b/src/bin/e_input_device.c @@ -5,6 +5,9 @@ static Eina_List *einput_devices; static E_Input_Device *e_input_device_default = NULL; +struct xkb_keymap *cached_keymap; +struct xkb_context *cached_context; + static int _device_open_no_pending(const char *device, int flags) { diff --git a/src/bin/e_input_private.h b/src/bin/e_input_private.h index 46dd82b09e..010ed6385b 100644 --- a/src/bin/e_input_private.h +++ b/src/bin/e_input_private.h @@ -10,8 +10,8 @@ #include #include -struct xkb_keymap *cached_keymap; -struct xkb_context *cached_context; +extern struct xkb_keymap *cached_keymap; +extern struct xkb_context *cached_context; #define E_INPUT_ENV_LIBINPUT_LOG_DISABLE "E_INPUT_LIBINPUT_LOG_DISABLE" #define E_INPUT_ENV_LIBINPUT_LOG_EINA_LOG "E_INPUT_LIBINPUT_LOG_EINA_LOG"