evas: use already existing macro.

SVN revision: 65906
This commit is contained in:
Cedric BAIL 2011-12-05 14:32:10 +00:00
parent 0d4c616dc5
commit ad7e82bae0
2 changed files with 2 additions and 6 deletions

View File

@ -434,10 +434,6 @@ AC_HEADER_STDC
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 <sys/mman.h> header file.])
fi
### Checks for types
AC_CHECK_TYPES([struct sigaction], [], [],
[[#include <signal.h>]])

View File

@ -1,7 +1,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#ifdef HAVE_MMAN_H
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
#include <math.h>
@ -211,7 +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
#ifdef HAVE_SYS_MMAN_H
Evas_Object_Image *o;
char buf[4096];
void *dst;