summaryrefslogtreecommitdiff
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2006-09-15 17:16:00 +0000
committerJason Parker <jparker@digium.com>2006-09-15 17:16:00 +0000
commitf18cbf77df454b86a479352c0429ab68bded5c8b (patch)
tree3f107f0203614eab20317d4d725f6b03f760b37a /include/asterisk/compat.h
parente421b69ce6d9722def020f3f97624badfcfe0815 (diff)
Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.c
Every OS uses strcompat now - this was done on purpose. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 8c2c6c4e6..ad4cfc616 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -18,19 +18,48 @@
#include <inttypes.h>
#include <sys/types.h>
+#include <stdarg.h>
-#ifndef HAVE_STRSEP
-char* strsep(char** str, const char* delims);
+#if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC)
+int asprintf(char **str, const char *fmt, ...);
+#endif
+
+#ifndef HAVE_GETLOADAVG
+int getloadavg(double *list, int nelem);
#endif
#ifndef HAVE_SETENV
int setenv(const char *name, const char *value, int overwrite);
#endif
+#ifndef HAVE_STRCASESTR
+char *strcasestr(const char *, const char *);
+#endif
+
+#if !defined(HAVE_STRNDUP) && !defined(__AST_DEBUG_MALLOC)
+char *strndup(const char *, size_t);
+#endif
+
+#ifndef HAVE_STRNLEN
+size_t strnlen(const char *, size_t);
+#endif
+
+#ifndef HAVE_STRSEP
+char* strsep(char** str, const char* delims);
+#endif
+
+#ifndef HAVE_STRTOQ
+uint64_t strtoq(const char *nptr, char **endptr, int base);
+#endif
+
#ifndef HAVE_UNSETENV
int unsetenv(const char *name);
#endif
+#if !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC)
+int vasprintf(char **strp, const char *fmt, va_list ap);
+#endif
+
#ifdef SOLARIS
#define __BEGIN_DECLS
#define __END_DECLS