Build on FreeBSD. Patch from Naruto, plus a tweak to remove the unneeded libdl.

SVN revision: 37103
This commit is contained in:
Eric Schuele 2008-10-25 18:17:22 +00:00
parent bb5f1a561a
commit 190a7b56c7
2 changed files with 7 additions and 0 deletions

View File

@ -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"
;;

View File

@ -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;