-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(asio): Drop esp/asio patches in favor of sock-utils
- Loading branch information
1 parent
42cde46
commit ac63389
Showing
10 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "components/asio/asio"] | ||
path = components/asio/asio | ||
url = https://github.com/espressif/asio | ||
url = https://github.com/chriskohlhoff/asio | ||
[submodule "components/mosquitto/mosquitto"] | ||
path = components/mosquitto/mosquitto | ||
url = https://github.com/eclipse/mosquitto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule asio
updated
7 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// | ||
#pragma once | ||
|
||
#include "sys/socket.h" | ||
#include "socketpair.h" | ||
|
||
#include_next "asio/detail/config.hpp" |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// SPDX-FileCopyrightText: 2003-2023 Christopher M. Kohlhoff (chris at kohlhoff dot com) | ||
// | ||
// SPDX-License-Identifier: BSL-1.0 | ||
// | ||
// SPDX-FileContributor: 2024 Espressif Systems (Shanghai) CO LTD | ||
// | ||
#include "asio/detail/posix_event.hpp" | ||
#include "asio/detail/throw_error.hpp" | ||
#include "asio/error.hpp" | ||
#include "asio/detail/push_options.hpp" | ||
#include <unistd.h> | ||
#include <climits> | ||
|
||
namespace asio::detail { | ||
// This replaces asio's posix_event constructor | ||
// since the default POSIX version uses pthread_condattr_t operations (init, setclock, destroy), | ||
// which are not available on all IDF versions (some are defined in compilers' headers, others in | ||
// pthread library, but they typically return `ENOSYS` which causes trouble in the event wrapper) | ||
// IMPORTANT: Check implementation of posix_event() when upgrading upstream asio in order not to | ||
// miss any initialization step. | ||
posix_event::posix_event() | ||
: state_(0) | ||
{ | ||
int error = ::pthread_cond_init(&cond_, nullptr); | ||
asio::error_code ec(error, asio::error::get_system_category()); | ||
asio::detail::throw_error(ec, "event"); | ||
} | ||
} // namespace asio::detail | ||
|
||
extern "C" int pause (void) | ||
{ | ||
while (true) { | ||
::sleep(UINT_MAX); | ||
} | ||
} |