Add configure.in checks for sys/time.h and/or time.h and adjust e_mod_main.c

accordingly.


SVN revision: 23624
This commit is contained in:
Christopher Michael 2006-06-29 20:04:19 +00:00
parent e872091629
commit e8ec3712a6
2 changed files with 12 additions and 1 deletions

View File

@ -13,6 +13,8 @@ AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_HEADER_TIME
AC_CHECK_HEADERS(sys/time.h)
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL

View File

@ -1,6 +1,15 @@
#include <time.h>
#include <e.h>
#include "e_mod_main.h"
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
# endif
#endif
/* Func Proto Requirements for Gadcon */
static E_Gadcon_Client *_gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style);