[asterisk-commits] rizzo: trunk r89372 - /trunk/include/asterisk/channel.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Nov 17 04:32:56 CST 2007


Author: rizzo
Date: Sat Nov 17 04:32:56 2007
New Revision: 89372

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89372
Log:
use autoconf results to conditionally compile timersub

Modified:
    trunk/include/asterisk/channel.h

Modified: trunk/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/channel.h?view=diff&rev=89372&r1=89371&r2=89372
==============================================================================
--- trunk/include/asterisk/channel.h (original)
+++ trunk/include/asterisk/channel.h Sat Nov 17 04:32:56 2007
@@ -1357,7 +1357,7 @@
 	return 0;
 }
 
-#ifdef SOLARIS
+#ifndef HAVE_TIMERSUB
 static inline void timersub(struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff)
 {
 	tvdiff->tv_sec = tvend->tv_sec - tvstart->tv_sec;




More information about the asterisk-commits mailing list