aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scheduler.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:51:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-18 14:51:38 +0200
commit78ac6aee6dff1b608bc312fe7ada442ba83710e8 (patch)
treee887435cf8af9ae0e13646e452202f68516a958d /libbuild2/scheduler.cxx
parent2896bd88378712fcd253e0a03b20892acb1dd299 (diff)
Complete NetBSD compatibility
Diffstat (limited to 'libbuild2/scheduler.cxx')
-rw-r--r--libbuild2/scheduler.cxx4
1 files changed, 2 insertions, 2 deletions
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 <pthread.h>
# ifdef __FreeBSD__
-# include <pthread_np.h> // pthread_attr_get_np()
+# include <pthread_np.h> // pthread_attr_get_np() (in <pthread.h> 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