Commit 1b0eff58 (Implemented algorithm benchmarking during  
registration, applied 2010-08-16) modified libstrongswan/crypto/ 
crypto_tester.c to use clock_gettime() to measure time. This function  
does not exist in OS X (at least as of 10.6; I don't have access to a  
10.7 system), and thus strongSwan does not compile from source.  The  
following patches add a substitute clock_gettime() function that  
calls gettimeofday() for systems that lack a real clock_gettime().  
Although gettimeofday() is not as precise, it should be good enough  
for testing purposes.

-- 
Jason Tang  /  [email protected]



_______________________________________________
Dev mailing list
[email protected]
https://lists.strongswan.org/mailman/listinfo/dev

Reply via email to