]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap_r/thr_posix.c
Add valx arg to config_parse_add - indicate which value in the current
[openldap] / libraries / libldap_r / thr_posix.c
index 6d399e9c16ebf7c2c410e7ddb9cb61c1704ff135..ce48b32b53000e919b28449f138745bb055e6422 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <ac/errno.h>
 
-#if REPLACE_SCHED_YIELD
+#ifdef REPLACE_BROKEN_YIELD
 #ifndef HAVE_NANOSLEEP
 #include <ac/socket.h>
 #endif
@@ -214,7 +214,7 @@ ldap_pvt_thread_kill( ldap_pvt_thread_t thread, int signo )
 int 
 ldap_pvt_thread_yield( void )
 {
-#ifdef REPLACE_SCHED_YIELD
+#ifdef REPLACE_BROKEN_YIELD
 #ifdef HAVE_NANOSLEEP
        struct timespec t = { 0, 0 };
        nanosleep(&t, NULL);
@@ -224,7 +224,8 @@ ldap_pvt_thread_yield( void )
 #endif
        return 0;
 #elif HAVE_THR_YIELD
-       return thr_yield();
+       thr_yield();
+       return 0;
 
 #elif HAVE_PTHREADS == 10
        return sched_yield();