]> git.sur5r.net Git - openldap/commitdiff
Bugs with !HAVE_PTHREAD_KILL: include errno.h. Typo: sig should be signo.
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 17:52:40 +0000 (17:52 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 3 Mar 1999 17:52:40 +0000 (17:52 +0000)
libraries/libldap_r/thr_posix.c

index c76286d136dffe867bca700d5e8cd21c43334176..3b5673501d76ca642e06b252dbf06923ce119b7c 100644 (file)
@@ -12,6 +12,9 @@
  */
 
 #include "portable.h"
+
+#include <ac/errno.h>
+
 #include "ldap_pvt_thread.h"
 
 #if defined( HAVE_PTHREADS )
@@ -95,7 +98,7 @@ ldap_pvt_thread_kill( ldap_pvt_thread_t thread, int signo )
        return pthread_kill( thread, signo );
 #else
        /* pthread package with DCE */
-       if (kill( getpid(), sig )<0)
+       if (kill( getpid(), signo )<0)
                return errno;
        return 0;
 #endif