mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-10-29 09:42:31 +00:00
FreeBSD fixes
This commit is contained in:
@@ -408,6 +408,9 @@ public:
|
||||
_dirFD(-1),
|
||||
_stopped(false)
|
||||
{
|
||||
#ifndef O_EVTONLY
|
||||
#define O_EVTONLY 0x8000
|
||||
#endif
|
||||
_dirFD = open(owner.directory().path().c_str(), O_EVTONLY);
|
||||
if (_dirFD < 0) throw Poco::FileNotFoundException(owner.directory().path());
|
||||
_queueFD = kqueue();
|
||||
|
||||
@@ -160,7 +160,7 @@ void ThreadImpl::setStackSizeImpl(int size)
|
||||
#else
|
||||
if (size != 0)
|
||||
{
|
||||
#if defined(__APPLE__)
|
||||
#if defined(POCO_OS_FAMILY_BSD)
|
||||
// we must round up to a multiple of the memory page size
|
||||
const int PAGE_SIZE = 4096;
|
||||
size = ((size + PAGE_SIZE - 1)/PAGE_SIZE)*PAGE_SIZE;
|
||||
|
||||
@@ -54,10 +54,10 @@ export POCO_BUILD
|
||||
cwd = $(shell pwd)
|
||||
inpoco = $(shell echo | awk '{print index("$(cwd)","$(POCO_BASE)")}')
|
||||
inproj = $(shell echo | awk '{print index("$(cwd)","$(PROJECT_BASE)")}')
|
||||
ifeq ($(inpoco),1)
|
||||
ifneq ($(inpoco),0)
|
||||
PROJECT_BASE = $(POCO_BASE)
|
||||
else
|
||||
ifeq ($(inproj),1)
|
||||
ifneq ($(inproj),0)
|
||||
else
|
||||
$(error Current working directory not under $$PROJECT_BASE)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user