From: Hallvard Furuseth Date: Wed, 3 Mar 1999 17:52:40 +0000 (+0000) Subject: Bugs with !HAVE_PTHREAD_KILL: include errno.h. Typo: sig should be signo. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~506 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=74f808f44c7b0e2cf143c76eaa1268d1b29eb1e1;p=openldap Bugs with !HAVE_PTHREAD_KILL: include errno.h. Typo: sig should be signo. --- diff --git a/libraries/libldap_r/thr_posix.c b/libraries/libldap_r/thr_posix.c index c76286d136..3b5673501d 100644 --- a/libraries/libldap_r/thr_posix.c +++ b/libraries/libldap_r/thr_posix.c @@ -12,6 +12,9 @@ */ #include "portable.h" + +#include + #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