diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-02-05 21:38:16 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-02-05 21:45:06 -0800 |
| commit | 1ab680facd88fc3e63d5a82256373d6b517fbe8d (patch) | |
| tree | 383024a897ec23e491753eecfd66c271250b5491 /src | |
| parent | b46d532dc90b52eec42376e8c75bed5c6c7416a4 (diff) | |
| download | nng-1ab680facd88fc3e63d5a82256373d6b517fbe8d.tar.gz nng-1ab680facd88fc3e63d5a82256373d6b517fbe8d.tar.bz2 nng-1ab680facd88fc3e63d5a82256373d6b517fbe8d.zip | |
fixes #1182 v1.2.5 build fails gcc 4.8
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/posix/posix_atomic.c | 6 | ||||
| -rw-r--r-- | src/platform/posix/posix_impl.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/platform/posix/posix_atomic.c b/src/platform/posix/posix_atomic.c index cf568975..ecaf5461 100644 --- a/src/platform/posix/posix_atomic.c +++ b/src/platform/posix/posix_atomic.c @@ -1,5 +1,5 @@ // -// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -204,10 +204,10 @@ nni_atomic_flag_reset(nni_atomic_flag *f) } void -nni_atomic_set_bool(nni_atomic_bool *b) +nni_atomic_set_bool(nni_atomic_bool *b, bool n) { pthread_mutex_lock(&plat_atomic_lock); - b->b = false; + b->b = n; pthread_mutex_unlock(&plat_atomic_lock); } diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h index 3ec66b6b..2a6fd6a1 100644 --- a/src/platform/posix/posix_impl.h +++ b/src/platform/posix/posix_impl.h @@ -1,5 +1,5 @@ // -// Copyright 2019 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // // This software is supplied under the terms of the MIT License, a @@ -100,7 +100,7 @@ struct nni_atomic_flag { bool f; }; -struct nni_atomic_bol { +struct nni_atomic_bool { bool b; }; |
