mirror of https://github.com/oxen-io/oxen-mq.git
Add missing header for BSD pthread naming
This commit is contained in:
parent
9c54264321
commit
7cd58e4677
|
@ -2,6 +2,13 @@
|
||||||
#include "lokimq-internal.h"
|
#include "lokimq-internal.h"
|
||||||
#include "hex.h"
|
#include "hex.h"
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
extern "C" {
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <pthread_np.h>
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
#include "batch.h"
|
#include "batch.h"
|
||||||
#include "lokimq-internal.h"
|
#include "lokimq-internal.h"
|
||||||
|
|
||||||
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
extern "C" {
|
||||||
|
#include <pthread.h>
|
||||||
|
#include <pthread_np.h>
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace lokimq {
|
namespace lokimq {
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
Loading…
Reference in New Issue