Skip to content

Commit c8e9dda

Browse files
hgy59ymartin59
authored andcommitted
support ppc853x by patch
1 parent 63e58ae commit c8e9dda

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

cross/mosquitto/Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
77

88
DEPENDS = cross/c-ares cross/openssl cross/util-linux cross/libwebsockets
99

10-
# since version 1.6.11 at least glibc 2.12 is required
11-
# https://github.com/eclipse/mosquitto/issues/1792
12-
UNSUPPORTED_ARCHS = powerpc ppc824x ppc853x ppc854x
1310

1411
HOMEPAGE = http://www.mosquitto.org/
1512
COMMENT = Mosquitto is an open source message broker that implements the MQTT protocol versions 5.0, 3.1.1 and 3.1.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# since mosquitto 1.6.11 pthread_setname_np is required, but not supported with glibc < 2.12
2+
# this is for naming threads only as introduced with https://github.com/eclipse/mosquitto/commit/bd27935ff63613301e485c0ce9e7e9b4e67e6d07
3+
# and has no effect to the theading support in mosquitto.
4+
5+
--- lib/thread_mosq.c.org 2020-08-19 13:55:03.000000000 +0000
6+
+++ lib/thread_mosq.c 2020-09-29 07:13:18.196407777 +0000
7+
@@ -41,13 +41,6 @@
8+
9+
mosq->threaded = mosq_ts_self;
10+
if(!pthread_create(&mosq->thread_id, NULL, mosquitto__thread_main, mosq)){
11+
-#if defined(__linux__)
12+
- pthread_setname_np(mosq->thread_id, "mosquitto loop");
13+
-#elif defined(__NetBSD__)
14+
- pthread_setname_np(mosq->thread_id, "%s", "mosquitto loop");
15+
-#elif defined(__FreeBSD__) || defined(__OpenBSD__)
16+
- pthread_set_name_np(mosq->thread_id, "mosquitto loop");
17+
-#endif
18+
return MOSQ_ERR_SUCCESS;
19+
}else{
20+
return MOSQ_ERR_ERRNO;

0 commit comments

Comments
 (0)