File tree Expand file tree Collapse file tree 7 files changed +24
-59
lines changed Expand file tree Collapse file tree 7 files changed +24
-59
lines changed Original file line number Diff line number Diff line change @@ -74,16 +74,15 @@ idf_component_register(SRCS ${m_srcs}
74
74
port/callbacks.c
75
75
port/config.c
76
76
port/signals.c
77
- port/ifaddrs.c
78
77
port/broker.c
79
78
port/files.c
80
79
port/net__esp_tls.c
80
+ port/sysconf.c
81
81
PRIV_INCLUDE_DIRS port/priv_include port/priv_include/sys ${m_dir} ${m_src_dir}
82
82
${m_incl_dir} ${m_lib_dir} ${m_deps_dir}
83
83
INCLUDE_DIRS ${m_incl_dir} port/include
84
84
REQUIRES esp-tls
85
- PRIV_REQUIRES newlib
86
- )
85
+ PRIV_REQUIRES newlib sock_utils )
87
86
88
87
target_compile_definitions (${COMPONENT_LIB} PRIVATE "WITH_BROKER" )
89
88
target_compile_options (${COMPONENT_LIB} PRIVATE "-Wno-format" )
Original file line number Diff line number Diff line change @@ -3,3 +3,5 @@ url: https://github.com/espressif/esp-protocols/tree/master/components/mosquitto
3
3
description : The component provides a simple ESP32 port of mosquitto broker
4
4
dependencies :
5
5
idf : ' >=5.1'
6
+ espressif/sock_utils :
7
+ version : ' ^0.2'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
*/
6
6
#pragma once
7
7
#include <ctype.h>
8
+ #include "net/if.h"
8
9
9
10
#undef isspace
10
11
#define isspace (__c ) (__ctype_lookup((int)__c)&_S)
11
12
12
13
#include_next "config.h"
13
- #define VERSION "v2.0.18~0"
14
14
15
- #define _SC_OPEN_MAX_OVERRIDE 4
16
-
17
- // used to override syscall for obtaining max open fds
18
- static inline long sysconf (int arg )
19
- {
20
- if (arg == _SC_OPEN_MAX_OVERRIDE ) {
21
- return 64 ;
22
- }
23
- return -1 ;
24
- }
15
+ #define VERSION "v2.0.20~1"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ /*
2
+ * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ #include <ctype.h>
7
+ #include <unistd.h>
8
+
9
+ #define _SC_OPEN_MAX_OVERRIDE 4
10
+
11
+ // used to override syscall for obtaining max open fds
12
+ long sysconf (int arg )
13
+ {
14
+ if (arg == _SC_OPEN_MAX_OVERRIDE ) {
15
+ return 64 ;
16
+ }
17
+ return -1 ;
18
+ }
You can’t perform that action at this time.
0 commit comments