forked from enlightenment/efl
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:
parent
8ffc6d6909
commit
12e0602452
|
@ -3046,8 +3046,6 @@ EFL_ADD_LIBS([EIO], [-lm])
|
||||||
|
|
||||||
### Checks for header files
|
### Checks for header files
|
||||||
|
|
||||||
AC_CHECK_HEADERS([grp.h pwd.h])
|
|
||||||
|
|
||||||
### Checks for types
|
### Checks for types
|
||||||
|
|
||||||
### Checks for structures
|
### Checks for structures
|
||||||
|
@ -3058,8 +3056,6 @@ AC_CHECK_HEADERS([grp.h pwd.h])
|
||||||
|
|
||||||
### Checks for library functions
|
### Checks for library functions
|
||||||
|
|
||||||
AC_CHECK_FUNCS([fchmod chown getpwnam getgrnam])
|
|
||||||
|
|
||||||
# Check for splice system call
|
# Check for splice system call
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to use splice for file copy])
|
AC_MSG_CHECKING([whether to use splice for file copy])
|
||||||
|
|
|
@ -58,10 +58,6 @@ void *alloca (size_t);
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#ifdef HAVE_PWD_H
|
|
||||||
# include <pwd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_FEATURES_H
|
#ifdef HAVE_FEATURES_H
|
||||||
# include <features.h>
|
# include <features.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -74,10 +70,6 @@ void *alloca (size_t);
|
||||||
# include <libgen.h>
|
# include <libgen.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GRP_H
|
|
||||||
# include <grp.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef EFL_HAVE_POSIX_THREADS
|
#ifdef EFL_HAVE_POSIX_THREADS
|
||||||
# include <pthread.h>
|
# include <pthread.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -106,6 +98,9 @@ typedef struct __stat64 _eio_stat_t;
|
||||||
typedef struct stat _eio_stat_t;
|
typedef struct stat _eio_stat_t;
|
||||||
#define _eio_stat(p, b) stat(p, b)
|
#define _eio_stat(p, b) stat(p, b)
|
||||||
#define _eio_lstat(p, b) lstat(p, b)
|
#define _eio_lstat(p, b) lstat(p, b)
|
||||||
|
|
||||||
|
# include <grp.h>
|
||||||
|
# include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Keeping 32 Eio_File_Progress alive should be enought */
|
/* Keeping 32 Eio_File_Progress alive should be enought */
|
||||||
|
|
Loading…
Reference in New Issue