From 78ac6aee6dff1b608bc312fe7ada442ba83710e8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2020 14:51:38 +0200 Subject: Complete NetBSD compatibility --- libbuild2/scheduler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/scheduler.cxx') diff --git a/libbuild2/scheduler.cxx b/libbuild2/scheduler.cxx index bf2fde8..82bc4cc 100644 --- a/libbuild2/scheduler.cxx +++ b/libbuild2/scheduler.cxx @@ -6,7 +6,7 @@ #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) # include # ifdef __FreeBSD__ -# include // pthread_attr_get_np() +# include // pthread_attr_get_np() (in on NetBSD) # endif #endif @@ -605,7 +605,7 @@ namespace build2 // at the linking stage (see build2/buildfile). Thus neither *_STACK_SIZE // nor --max-stack have any effect here. // - // On Linux, FreeBSD and MacOS there is no way to change it once and for + // On Linux, *BSD and MacOS there is no way to change it once and for // all newly created threads. Thus we will use pthreads, creating threads // with the stack size of the current thread. This way all threads will // inherit the main thread's stack size (since the first helper is always -- cgit v1.1