mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
Bugs with !HAVE_PTHREAD_KILL: include errno.h. Typo: sig should be signo.
This commit is contained in:
parent
45bf79315e
commit
74f808f44c
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue