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
This commit is contained in:
Gustavo Sverzut Barbieri 2012-12-31 15:16:49 +00:00
parent 8ffc6d6909
commit 12e0602452
2 changed files with 3 additions and 12 deletions

View File

@ -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])

View File

@ -58,10 +58,6 @@ void *alloca (size_t);
#include <sys/mman.h>
#include <fcntl.h>
#ifdef HAVE_PWD_H
# include <pwd.h>
#endif
#ifdef HAVE_FEATURES_H
# include <features.h>
#endif
@ -74,10 +70,6 @@ void *alloca (size_t);
# include <libgen.h>
#endif
#ifdef HAVE_GRP_H
# include <grp.h>
#endif
#ifdef EFL_HAVE_POSIX_THREADS
# include <pthread.h>
#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 <grp.h>
# include <pwd.h>
#endif
/* Keeping 32 Eio_File_Progress alive should be enought */