ecore: include header only when required.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 27 Dec 2011 10:10:47 +0000 (10:10 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 27 Dec 2011 10:10:47 +0000 (10:10 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@66563 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_evas/ecore_evas_wayland_shm.c

index 970cbb7..d4f19c4 100644 (file)
 # define LOGFN(fl, ln, fn)
 #endif
 
+#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
 # include <stdlib.h>
 # include <string.h>
 # include <unistd.h>
 # include <sys/types.h>
 # include <sys/mman.h>
+#endif
 
 # include <Eina.h>
 # include <Evas.h>
@@ -28,9 +30,7 @@
 #ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
 # include <Evas_Engine_Wayland_Shm.h>
 # include <Ecore_Wayland.h>
-#endif
 
-#ifdef BUILD_ECORE_EVAS_WAYLAND_SHM
 /* local function prototypes */
 static int _ecore_evas_wl_init(void);
 static int _ecore_evas_wl_shutdown(void);