From a45c53bc5b6c5bd40b17f6bb5d3c2af100977dee Mon Sep 17 00:00:00 2001
From: Luigi Rizzo <rizzo@icir.org>
Date: Sat, 17 Nov 2007 10:32:56 +0000
Subject: [PATCH] use autoconf results to conditionally compile timersub

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 include/asterisk/channel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 8a7f2f83f5..f16c6f0b9e 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1357,7 +1357,7 @@ static inline int ast_fdisset(struct pollfd *pfds, int fd, int max, int *start)
 	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;
-- 
GitLab