mirror of
https://github.com/monero-project/monero.git
synced 2025-05-05 14:25:00 -04:00
update unbound from upstream
This commit is contained in:
parent
b0151de601
commit
1f49833d4f
155 changed files with 5482 additions and 3440 deletions
10
external/unbound/util/log.c
vendored
10
external/unbound/util/log.c
vendored
|
@ -40,7 +40,7 @@
|
|||
#include "config.h"
|
||||
#include "util/log.h"
|
||||
#include "util/locks.h"
|
||||
#include "ldns/sbuffer.h"
|
||||
#include "sldns/sbuffer.h"
|
||||
#include <stdarg.h>
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
|
@ -164,6 +164,14 @@ void log_thread_set(int* num)
|
|||
ub_thread_key_set(logkey, num);
|
||||
}
|
||||
|
||||
int log_thread_get(void)
|
||||
{
|
||||
unsigned int* tid;
|
||||
if(!key_created) return 0;
|
||||
tid = (unsigned int*)ub_thread_key_get(logkey);
|
||||
return (int)(tid?*tid:0);
|
||||
}
|
||||
|
||||
void log_ident_set(const char* id)
|
||||
{
|
||||
ident = id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue