diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/autoconfig.h.in | 3 | ||||
-rw-r--r-- | include/asterisk/channel.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in index 163d132df..b05c0ff32 100644 --- a/include/asterisk/autoconfig.h.in +++ b/include/asterisk/autoconfig.h.in @@ -498,6 +498,9 @@ /* Define to 1 if you have the <termios.h> header file. */ #undef HAVE_TERMIOS_H +/* Define to 1 if your system has timersub in time.h */ +#undef HAVE_TIMERSUB + /* Define to indicate the ${TINFO_DESCRIP} library */ #undef HAVE_TINFO diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index aa1ee2d07..05e44449c 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1315,7 +1315,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; |