Skip to content

Commit

Permalink
fix(asio): Fails to resove dependency?
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cermak committed Dec 18, 2024
1 parent cba5047 commit 7cd3a5c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ dependencies:
override_path: "../../../"
protocol_examples_common:
path: ${IDF_PATH}/examples/common_components/protocol_examples_common
espressif/sock_utils: "*"
# espressif/sock_utils: "*"
1 change: 1 addition & 0 deletions components/asio/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ repository: https://github.com/espressif/esp-protocols.git
dependencies:
idf:
version: ">=5.0"
espressif/sock_utils: "*"
9 changes: 9 additions & 0 deletions components/asio/port/src/asio_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
//
#include <unistd.h>
#include <climits>
#include <cerrno>
#include "esp_idf_version.h"

extern "C" int pause (void)
{
while (true) {
::sleep(UINT_MAX);
}
}

#if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(5, 1, 0)
extern "C" int pthread_condattr_destroy(pthread_condattr_t *attr)
{
return ENOSYS;
}
#endif

0 comments on commit 7cd3a5c

Please sign in to comment.