From 12e06024520c4d783380ceb0e6ec5d8e40dab6ae Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 31 Dec 2012 15:16:49 +0000 Subject: [PATCH] efl: eio checks cleanup some functions were being checked but their IFDEF not being handled, others (getpwnam and getgrnam) were isolated in a code that is now Windows, then no need to check them as well as these are POSIX. SVN revision: 81934 --- configure.ac | 4 ---- src/lib/eio/eio_private.h | 11 +++-------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/configure.ac b/configure.ac index 931384656e..cc31fcae46 100644 --- a/configure.ac +++ b/configure.ac @@ -3046,8 +3046,6 @@ EFL_ADD_LIBS([EIO], [-lm]) ### Checks for header files -AC_CHECK_HEADERS([grp.h pwd.h]) - ### Checks for types ### Checks for structures @@ -3058,8 +3056,6 @@ AC_CHECK_HEADERS([grp.h pwd.h]) ### Checks for library functions -AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam]) - # Check for splice system call AC_MSG_CHECKING([whether to use splice for file copy]) diff --git a/src/lib/eio/eio_private.h b/src/lib/eio/eio_private.h index d57277e9c2..7e3684500c 100644 --- a/src/lib/eio/eio_private.h +++ b/src/lib/eio/eio_private.h @@ -58,10 +58,6 @@ void *alloca (size_t); #include #include -#ifdef HAVE_PWD_H -# include -#endif - #ifdef HAVE_FEATURES_H # include #endif @@ -74,10 +70,6 @@ void *alloca (size_t); # include #endif -#ifdef HAVE_GRP_H -# include -#endif - #ifdef EFL_HAVE_POSIX_THREADS # include #endif @@ -106,6 +98,9 @@ typedef struct __stat64 _eio_stat_t; typedef struct stat _eio_stat_t; #define _eio_stat(p, b) stat(p, b) #define _eio_lstat(p, b) lstat(p, b) + +# include +# include #endif /* Keeping 32 Eio_File_Progress alive should be enought */