From eb36b6755f38085a9219d2ab486d9d5770aac2e4 Mon Sep 17 00:00:00 2001 From: Jean-Francois Simon Date: Wed, 7 Dec 2022 17:09:13 +0000 Subject: [PATCH] Fix arm and armhf test builds and unit_test runtime. Generalized with the correct define (comment from SC). --- .github/workflows/test.yml | 6 +++--- test/unit_test.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21b745ba..c1c1172d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/test/unit_test.c b/test/unit_test.c index 337c1039..c7ce1414 100644 --- a/test/unit_test.c +++ b/test/unit_test.c @@ -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;