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
}
#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)
return -1;
}
#endif /* linux */
-#endif /* !defined(getloadavg) */
+#endif /* !defined(_BSD_SOURCE) */
char *ast_process_quotes_and_slashes(char *start, char find, char replace_with)
{