mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Fix platform_posix.cc on FreeBSD
This commit is contained in:
parent
66d4926e41
commit
b015b03405
@ -3,12 +3,15 @@
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
#include <loguru.hpp>
|
||||
#include "loguru.hpp"
|
||||
|
||||
#include <pthread.h>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#if defined(__FreeBSD__)
|
||||
# include <pthread_np.h>
|
||||
# include <sys/thr.h>
|
||||
#elif defined(__OpenBSD__)
|
||||
# include <pthread_np.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
@ -27,7 +30,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <semaphore.h>
|
||||
#include <sys/mman.h>
|
||||
@ -39,6 +41,9 @@
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
namespace {
|
||||
|
||||
// Returns the canonicalized absolute pathname, without expanding symbolic
|
||||
|
Loading…
Reference in New Issue
Block a user