From b01af6e57c3cf129da71fb8093ba72ea640ade04 Mon Sep 17 00:00:00 2001 From: memeka Date: Sat, 14 May 2016 19:58:19 +0930 Subject: [PATCH] elementary: Fix build issue when x11 is disabled When we compile efl using --with-x11=none, then _tempfile_new and _tmpinfo_free end up being undefined, however these functions are used by wayland too so they need to be defined regardless. @fix --- src/lib/elementary/elm_cnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary/elm_cnp.c b/src/lib/elementary/elm_cnp.c index 361089187b..efd8e0f245 100644 --- a/src/lib/elementary/elm_cnp.c +++ b/src/lib/elementary/elm_cnp.c @@ -195,10 +195,10 @@ static Eina_Bool _local_elm_drop_target_del(Evas_Object *obj, Elm_Sel_Format fo Elm_Drag_Pos poscb, void *posdata, Elm_Drop_Cb dropcb, void *dropdata); -#ifdef HAVE_ELEMENTARY_X -static Ecore_X_Window _x11_elm_widget_xwin_get(const Evas_Object *obj); static Tmp_Info *_tempfile_new (int size); static int _tmpinfo_free (Tmp_Info *tmp); +#ifdef HAVE_ELEMENTARY_X +static Ecore_X_Window _x11_elm_widget_xwin_get(const Evas_Object *obj); typedef struct _X11_Cnp_Selection X11_Cnp_Selection;