Merge pull request #1906 from jfsimon1981/armfix

Fix arm and armhf test builds and unit_test runtime.
This commit is contained in:
Sergey Lyubka 2022-12-07 18:31:29 +00:00 committed by GitHub
commit 615d324b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -32,9 +32,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - run: sudo apt-get install qemu binfmt-support qemu-user-static
# - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# - run: make armhf
- run: sudo apt-get install qemu binfmt-support qemu-user-static
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- run: make armhf
linux2:
runs-on: ubuntu-latest
steps:

View File

@ -2205,7 +2205,7 @@ static void eh6(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
(void) c, (void) ev_data;
}
#if defined(__arm__) || defined(__riscv)
#if (MG_ENABLE_SOCKET == 0)
int send(int sock, const void *buf, size_t len, int flags);
int send(int sock, const void *buf, size_t len, int flags) {
(void) sock, (void) buf, (void) len, (void) flags;