use configure-time headers checks instead of compiler ones

SVN revision: 55975
This commit is contained in:
Vincent Torri 2011-01-07 08:51:17 +00:00
parent bd6ce4a5e4
commit 7a078d0c76
5 changed files with 23 additions and 11 deletions

View File

@ -889,7 +889,7 @@ case "$host_os" in
have_addrinfo="yes"
;;
*)
AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h])
AC_CHECK_HEADERS([dlfcn.h features.h langinfo.h locale.h sys/time.h sys/mman.h signal.h sys/resource.h sys/param.h unistd.h libgen])
;;
esac

View File

@ -8,7 +8,7 @@
#include <fcntl.h>
#include <errno.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
@ -27,6 +27,7 @@
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
#include <Eina.h>
#include "Ecore.h"

View File

@ -4,9 +4,11 @@
#include <stdlib.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#else
#endif
#ifdef _MSC_VER
# include <process.h>
#endif

View File

@ -23,17 +23,22 @@
#include <errno.h>
#include <fcntl.h>
#ifndef _MSC_VER
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#else
#endif
#ifdef _MSC_VER
# include <float.h>
#endif
#define FIX_HZ 1
#ifdef FIX_HZ
# ifndef _MSC_VER
# ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
# endif
# ifndef HZ
@ -45,9 +50,6 @@
# include <Evil.h>
#endif
#include "Ecore.h"
#include "ecore_private.h"
#ifdef HAVE_SYS_EPOLL_H
# define HAVE_EPOLL
# include <sys/epoll.h>
@ -57,6 +59,9 @@
# include <glib.h>
#endif
#include "Ecore.h"
#include "ecore_private.h"
struct _Ecore_Fd_Handler
{
EINA_INLIST;

View File

@ -5,14 +5,18 @@
#include <stdio.h>
#include <string.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#endif
#ifdef HAVE_FEATURES_H
# include <features.h>
#endif
#include <ctype.h>
#include <errno.h>