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:
parent
e872091629
commit
e8ec3712a6
|
@ -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
|
||||
|
|
11
e_mod_main.c
11
e_mod_main.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue