forked from enlightenment/efl
Build on FreeBSD. Patch from Naruto, plus a tweak to remove the unneeded libdl.
SVN revision: 37103
This commit is contained in:
parent
bb5f1a561a
commit
190a7b56c7
|
@ -274,6 +274,9 @@ case "${host_os}" in
|
|||
EINA_LIBS="${EINA_LIBS} ${EVIL_LIBS} -lm"
|
||||
lt_enable_auto_import="-Wl,--enable-auto-import"
|
||||
;;
|
||||
*bsd*)
|
||||
EINA_LIBS="${EINA_LIBS} -lrt -lm"
|
||||
;;
|
||||
*)
|
||||
EINA_LIBS="${EINA_LIBS} -ldl -lrt -lm"
|
||||
;;
|
||||
|
|
|
@ -76,7 +76,11 @@ static int _eina_counter_init_count = 0;
|
|||
static inline int
|
||||
_eina_counter_time_get(Eina_Nano_Time *tp)
|
||||
{
|
||||
#ifdef __FreeBSD__
|
||||
return clock_gettime(CLOCK_PROF, tp);
|
||||
#else
|
||||
return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
static int EINA_COUNTER_ERROR_WINDOWS = 0;
|
||||
|
|
Loading…
Reference in New Issue