efl: eio checks cleanup
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 31 Dec 2012 15:16:49 +0000 (15:16 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Mon, 31 Dec 2012 15:16:49 +0000 (15:16 +0000)
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
src/lib/eio/eio_private.h

index 9313846..cc31fca 100644 (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])
index d57277e..7e36845 100644 (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 */