mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
issue #5549
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2005-11-01 Kevin P. Fleming <kpfleming@digium.com>
|
||||
|
||||
* utils.c (getloadavg): change to using _BSD_SOURCE as the indicator for whether this function is present or not (issue #5549)
|
||||
|
||||
* include/asterisk/utils.h (ast_slinear_saturated_add): force to be inlined whenever possible
|
||||
(ast_slinear_saturated_multiply): same
|
||||
(ast_slinear_saturated_divide): same
|
||||
|
4
utils.c
4
utils.c
@@ -837,7 +837,7 @@ uint64_t strtoq(const char *nptr, char **endptr, int base)
|
||||
}
|
||||
#endif /* !HAVE_STRTOQ */
|
||||
|
||||
#if (!defined(getloadavg))
|
||||
#if (!defined(_BSD_SOURCE))
|
||||
#ifdef linux
|
||||
/* Alternative method of getting load avg on Linux only */
|
||||
int getloadavg(double *list, int nelem)
|
||||
@@ -871,7 +871,7 @@ int getloadavg(double *list, int nelem)
|
||||
return -1;
|
||||
}
|
||||
#endif /* linux */
|
||||
#endif /* !defined(getloadavg) */
|
||||
#endif /* !defined(_BSD_SOURCE) */
|
||||
|
||||
char *ast_process_quotes_and_slashes(char *start, char find, char replace_with)
|
||||
{
|
||||
|
Reference in New Issue
Block a user