Skip to content

Commit 31ea55e

Browse files
authored
Merge pull request #1097 from david-cermak/fix/mosq_build
fix(mosq): Undef POSIX_C_SOURCE as mosquitto config defines it
2 parents 8f1ecbe + 5d41416 commit 31ea55e

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

components/mosquitto/.cz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ commitizen:
33
bump_message: 'bump(mosq): $current_version -> $new_version'
44
pre_bump_hooks: python ../../ci/changelog.py mosquitto
55
tag_format: mosq-v$version
6-
version: 2.0.20~7
6+
version: 2.0.20~8
77
version_files:
88
- idf_component.yml

components/mosquitto/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [2.0.20~8](https://github.com/espressif/esp-protocols/commits/mosq-v2.0.20_8)
4+
5+
### Bug Fixes
6+
7+
- Undef POSIX_C_SOURCE as mosquitto config defines it ([07de5c0e](https://github.com/espressif/esp-protocols/commit/07de5c0e))
8+
39
## [2.0.20~7](https://github.com/espressif/esp-protocols/commits/mosq-v2.0.20_7)
410

511
### Features

components/mosquitto/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.0.20~7"
1+
version: "2.0.20~8"
22
url: https://github.com/espressif/esp-protocols/tree/master/components/mosquitto
33
description: The component provides a simple ESP32 port of mosquitto broker
44
dependencies:

components/mosquitto/port/priv_include/config.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66
#pragma once
7+
#undef _POSIX_C_SOURCE /* Note: mosquitto's config.h bug: defines _POSIX_C_SOURCE=200809L
8+
* - fixed in v2.1.0, but IDF port doesn't support yet (due to json deps)
9+
*/
710
#include_next "config.h"
811

912
/*
@@ -23,4 +26,4 @@
2326
#define isspace(__c) (__ctype_lookup((int)__c)&_S)
2427
#endif
2528

26-
#define VERSION "v2.0.20~7"
29+
#define VERSION "v2.0.20~8"

0 commit comments

Comments
 (0)