Skip to content

Commit

Permalink
Disable threading on Android
Browse files Browse the repository at this point in the history
It doesn't support pthread_cancel.

Closes #1308. Thanks to Daniel d'Andrada.
  • Loading branch information
ralight committed Jun 18, 2019
1 parent e642bee commit 3d8ecc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Broker:
Client library:
- Fix typo causing build error on Windows when building without TLS support.
Closes #1264.
- Disable `WITH_THREADING` on Android, because it doesn't have `pthread_cancel`.
Closes #1308.

Clients:
- Fix -L url parsing when `/topic` part is missing.
Expand Down
5 changes: 5 additions & 0 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
# define _POSIX_C_SOURCE 200809L
#endif

/* Android Bionic libpthread implementation doesn't have pthread_cancel. */
#ifdef ANDROID
# undef WITH_THREADING
#endif

#define _GNU_SOURCE

#define OPENSSL_LOAD_CONF
Expand Down
3 changes: 3 additions & 0 deletions www/posts/2019/06/version-1-6-3-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ This is a bugfix release.
## Client library
- Fix typo causing build error on Windows when building without TLS support.
Closes [#1264].
- Disable `WITH_THREADING` on Android, because it doesn't have `pthread_cancel`.
Closes [#1308].

## Clients
- Fix -L url parsing when `/topic` part is missing.
Expand Down Expand Up @@ -82,3 +84,4 @@ This is a bugfix release.
[#1290]: https://github.com/eclipse/mosquitto/issues/1290
[#1294]: https://github.com/eclipse/mosquitto/issues/1294
[#1302]: https://github.com/eclipse/mosquitto/issues/1302
[#1308]: https://github.com/eclipse/mosquitto/pull/1308

0 comments on commit 3d8ecc3

Please sign in to comment.