Skip to content
Snippets Groups Projects
Commit a45c53bc authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

use autoconf results to conditionally compile timersub

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent f728d220
No related branches found
No related tags found
No related merge requests found
...@@ -1357,7 +1357,7 @@ static inline int ast_fdisset(struct pollfd *pfds, int fd, int max, int *start) ...@@ -1357,7 +1357,7 @@ static inline int ast_fdisset(struct pollfd *pfds, int fd, int max, int *start)
return 0; return 0;
} }
#ifdef SOLARIS #ifndef HAVE_TIMERSUB
static inline void timersub(struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff) static inline void timersub(struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff)
{ {
tvdiff->tv_sec = tvend->tv_sec - tvstart->tv_sec; tvdiff->tv_sec = tvend->tv_sec - tvstart->tv_sec;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment