From: cedric Date: Mon, 5 Dec 2011 14:00:53 +0000 (+0000) Subject: evas: more fine grained system detection. X-Git-Tag: 2.0_alpha~153^2~119 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b89e2db424e316dfce34cbb88f7f270919198bc1;p=framework%2Fuifw%2Fevas.git evas: more fine grained system detection. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@65903 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.ac b/configure.ac index 7b995d5..b6be221 100644 --- a/configure.ac +++ b/configure.ac @@ -431,9 +431,12 @@ fi ### Checks for header files AC_HEADER_STDC -AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h]) +AC_CHECK_HEADERS([unistd.h stdint.h sys/param.h netinet/in.h sys/mman.h]) EFL_CHECK_PATH_MAX +if test "x${ac_cv_header_sys_mman_h}" = "xyes" ; then + AC_DEFINE([HAVE_MMAN_H], [1], [Define to 1 if you have the header file.]) +fi ### Checks for types AC_CHECK_TYPES([struct sigaction], [], [], diff --git a/src/lib/canvas/evas_object_image.c b/src/lib/canvas/evas_object_image.c index 7f757a6..80bc916 100644 --- a/src/lib/canvas/evas_object_image.c +++ b/src/lib/canvas/evas_object_image.c @@ -1,7 +1,9 @@ #include #include #include -#include +#ifdef HAVE_MMAN_H +# include +#endif #include #include "evas_common.h" @@ -209,6 +211,7 @@ _cleanup_tmpf(Evas_Object *obj) static void _create_tmpf(Evas_Object *obj, void *data, int size, char *format __UNUSED__) { +#ifdef HAVE_MMAN_H Evas_Object_Image *o; char buf[4096]; void *dst; @@ -253,6 +256,12 @@ _create_tmpf(Evas_Object *obj, void *data, int size, char *format __UNUSED__) o->tmpf = eina_stringshare_add(buf); memcpy(dst, data, size); munmap(dst, size); +#else + (void) obj; + (void) data; + (void) size; + (void) format; +#endif } EAPI void diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 2410392..dc7ac99 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -3503,7 +3503,7 @@ _layout_paragraph_reorder_lines(Evas_Object_Textblock_Paragraph *par) static void _layout_paragraph_render(Evas_Object_Textblock *o, - Evas_Object_Textblock_Paragraph *par) + Evas_Object_Textblock_Paragraph *par) { if (par->rendered) return; @@ -3521,6 +3521,8 @@ _layout_paragraph_render(Evas_Object_Textblock *o, par->bidi_props = NULL; } } +#else + (void) o; #endif }