Add missing header for BSD pthread naming

This commit is contained in:
Jason Rhinelander 2020-07-05 21:21:06 -03:00
parent 9c54264321
commit 7cd58e4677
2 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,13 @@
#include "lokimq-internal.h"
#include "hex.h"
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
extern "C" {
#include <pthread.h>
#include <pthread_np.h>
}
#endif
#ifndef _WIN32
extern "C" {
#include <sys/stat.h>

View file

@ -2,6 +2,13 @@
#include "batch.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 {