aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 04:13:19 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 04:13:19 +0000
commitccc2fc8a310b16ad7a978d07ebf40535e6bf3ee9 (patch)
treeac7748259e8c5731376a912004a76e59ab0b1c3d /include/asterisk
parentd0b521d57cacdaccc50268c8415defeeeb6fded2 (diff)
issue #5569 minus lock.h changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/compat.h4
-rwxr-xr-xinclude/asterisk/utils.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index fb6a5d59f..139f4f81b 100755
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -74,6 +74,10 @@ int unsetenv(const char *name);
#define HAVE_VASPRINTF
#define HAVE_STRTOQ
+#ifdef _BSD_SOURCE
+#define HAVE_GETLOADAVG
+#endif
+
#ifdef __linux__
#define HAVE_STRCASESTR
#define HAVE_STRNDUP
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index 8eed095f0..b6b85df4e 100755
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -231,4 +231,8 @@ int ast_pthread_create_stack(pthread_t *thread, pthread_attr_t *attr, void *(*st
*/
char *ast_process_quotes_and_slashes(char *start, char find, char replace_with);
+#ifndef HAVE_GETLOADAVG
+int getloadavg(double *list, int nelem);
+#endif
+
#endif /* _ASTERISK_UTILS_H */