aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/utils.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-17 22:13:05 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-17 22:13:05 +0000
commit3a7aff1f3bd0a0ddf406d83d3b6ffcf1dc1c77ef (patch)
treeb68846ec425ce1bb717d2ea9a49ad679234796dd /include/asterisk/utils.h
parentdbbf2cc59f7198c9ecdabf3d291ec32bb856287a (diff)
Thread fixes, vm fix (bug #2665)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4030 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/utils.h')
-rwxr-xr-xinclude/asterisk/utils.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h
index 4543cd498..7c47fac89 100755
--- a/include/asterisk/utils.h
+++ b/include/asterisk/utils.h
@@ -15,6 +15,7 @@
#include <netinet/in.h>
#include <netdb.h>
#include <pthread.h>
+#include <asterisk/lock.h>
static inline int ast_strlen_zero(const char *s)
{
@@ -41,7 +42,7 @@ extern int ast_utils_init(void);
#endif
#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
-#ifdef LINUX
+#ifdef __linux__
#define ast_pthread_create pthread_create
#define ast_strcasestr strcasestr
#else
@@ -50,7 +51,7 @@ extern int ast_utils_init(void);
#define PTHREAD_ATTR_STACKSIZE 2097152
#endif /* PTHREAD_ATTR_STACKSIZE */
extern int ast_pthread_create(pthread_t *thread, pthread_attr_t *attr, void *(*start_routine)(void *), void *data);
-#endif /* LINUX */
+#endif /* __linux__ */
extern char *ast_strcasestr(const char *, const char *);