[Asterisk-cvs] asterisk utils.c,1.12,1.13
markster at lists.digium.com
markster at lists.digium.com
Mon Jun 28 16:24:36 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv11692
Modified Files:
utils.c
Log Message:
Merge OSX compatibility patch (bug #1940)
Index: utils.c
===================================================================
RCS file: /usr/cvsroot/asterisk/utils.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- utils.c 25 Jun 2004 04:07:52 -0000 1.12
+++ utils.c 28 Jun 2004 20:10:27 -0000 1.13
@@ -18,7 +18,7 @@
static char base64[64];
static char b2a[256];
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
/* duh? ERANGE value copied from web... */
#define ERANGE 34
@@ -190,13 +190,11 @@
ast_mutex_lock(&test_lock);
lock_count += 1;
pthread_create(&test_thread, NULL, test_thread_body, NULL);
- pthread_yield();
usleep(100);
if (lock_count != 2)
test_errors++;
ast_mutex_unlock(&test_lock);
lock_count -= 1;
- pthread_yield();
usleep(100);
if (lock_count != 1)
test_errors++;
@@ -205,7 +203,6 @@
if (lock_count != 0)
test_errors++;
ast_mutex_unlock(&test_lock2);
- pthread_yield();
usleep(100);
if (lock_count != 0)
test_errors++;
More information about the svn-commits
mailing list