elementary: Fix build issue when x11 is disabled
authormemeka <mihailescu2m@gmail.com>
Sat, 14 May 2016 10:28:19 +0000 (19:58 +0930)
committerChris Michael <cpmichael@osg.samsung.com>
Sat, 14 May 2016 10:44:39 +0000 (06:44 -0400)
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

index 3610891..efd8e0f 100644 (file)
@@ -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;