FreeBSD fixes

This commit is contained in:
Aleksandar Fabijanic
2012-10-01 02:10:16 +00:00
parent 91977735b3
commit 85b93853e0
3 changed files with 6 additions and 3 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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