[sr-dev] acc module usage of ftime for acc_cdr

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 27 18:08:43 CEST 2011


Hello,

I see that acc_cdr extension is using ftime() function. According to the 
manual, this function is obsolete and should not be used, quote:

CONFORMING TO
        4.2BSD,    POSIX.1-2001.    POSIX.1-2008  removes  the  
specification   of
        ftime().

        This  function is obsolete.  Don't use it.  If the time in 
seconds suf-
        fices,  time(2)    can  be     used;    gettimeofday(2)    
  gives     microseconds;
        clock_gettime(2) gives nanoseconds but is not as widely available.

On freebsd looks like it needs libcompat for linking, otherwise throws 
error: Undefined symbol "ftime"

I think it should be replaced with supported alternatives.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-dev mailing list