diff options
| author | Dave Voutila <voutilad@gmail.com> | 2021-03-12 02:29:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-11 23:29:25 -0800 |
| commit | 1091e5c6d27a741da9ab79825744b5a73f212d35 (patch) | |
| tree | 28a7ce97e4b65387062335c801770698c93e7b17 /src/platform | |
| parent | 6cf241a8f80d9323b6ba22c17c54b3eb42ac1d7d (diff) | |
| download | nng-1091e5c6d27a741da9ab79825744b5a73f212d35.tar.gz nng-1091e5c6d27a741da9ab79825744b5a73f212d35.tar.bz2 nng-1091e5c6d27a741da9ab79825744b5a73f212d35.zip | |
fix implicit declaration warnings for pthread_set_name_np on OpenBSD (#1425)
OpenBSD requires an additional header for both pthread_set_name_np and
pthread_get_name_np.
See http://man.openbsd.org/pthread_set_name_np for details.
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/posix/posix_thread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c index c200990b..ed4ec031 100644 --- a/src/platform/posix/posix_thread.c +++ b/src/platform/posix/posix_thread.c @@ -24,6 +24,10 @@ #include <time.h> #include <unistd.h> +#ifdef NNG_PLATFORM_OPENBSD +#include <pthread_np.h> +#endif + #ifdef NNG_SETSTACKSIZE #include <limits.h> #include <sys/resource.h> |
