mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-25 14:06:27 +00:00
Merged revisions 288637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ................ r288637 | tilghman | 2010-09-23 22:36:01 -0500 (Thu, 23 Sep 2010) | 9 lines Merged revisions 288636 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r288636 | tilghman | 2010-09-23 22:20:24 -0500 (Thu, 23 Sep 2010) | 2 lines Solaris compatibility fixes ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -524,6 +524,9 @@
|
||||
/* Define to indicate the PostgreSQL library */
|
||||
#undef HAVE_PGSQL
|
||||
|
||||
/* Define to indicate presence of the pg_encoding_to_char API. */
|
||||
#undef HAVE_PGSQL_pg_encoding_to_char
|
||||
|
||||
/* Define to 1 if your system defines IP_PKTINFO. */
|
||||
#undef HAVE_PKTINFO
|
||||
|
||||
|
||||
@@ -2242,19 +2242,6 @@ static inline int ast_fdisset(struct pollfd *pfds, int fd, int maximum, int *sta
|
||||
return 0;
|
||||
}
|
||||
|
||||
#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;
|
||||
tvdiff->tv_usec = tvend->tv_usec - tvstart->tv_usec;
|
||||
if (tvdiff->tv_usec < 0) {
|
||||
tvdiff->tv_sec --;
|
||||
tvdiff->tv_usec += 1000000;
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*! \brief Retrieves the current T38 state of a channel */
|
||||
static inline enum ast_t38_state ast_channel_get_t38_state(struct ast_channel *chan)
|
||||
{
|
||||
|
||||
@@ -133,6 +133,10 @@ int unsetenv(const char *name);
|
||||
int __attribute__((format(printf, 2, 0))) vasprintf(char **strp, const char *fmt, va_list ap);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_TIMERSUB
|
||||
void timersub(struct timeval *tvend, struct timeval *tvstart, struct timeval *tvdiff);
|
||||
#endif
|
||||
|
||||
#define strlcat __use__ast_str__functions_not__strlcat__
|
||||
#define strlcpy __use__ast_copy_string__not__strlcpy__
|
||||
|
||||
|
||||
Reference in New Issue
Block a user