From f24cfd1a69df9ef1a8233c5bd57c56f701762b49 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 12 Dec 2022 14:16:59 +0100 Subject: [PATCH] extmod/axtls-include: Add back needed header files for building axTLS. MicroPython overrides the axTLS port configuration file, but fails to include (needed for htonl) and (needed for gettimeofday). This results in build failures with compilers which do not support implicit function declarations (which were removed from C in 1999). This commit adds back the needed headers that were removed in this commit: https://github.com/micropython/axtls/commit/bd0801730969a290572c72b8c65e53f160ed2680 Signed-off-by: Damien George --- extmod/axtls-include/axtls_os_port.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extmod/axtls-include/axtls_os_port.h b/extmod/axtls-include/axtls_os_port.h index ef2683acfc..057642f974 100644 --- a/extmod/axtls-include/axtls_os_port.h +++ b/extmod/axtls-include/axtls_os_port.h @@ -26,7 +26,11 @@ #ifndef AXTLS_OS_PORT_H #define AXTLS_OS_PORT_H +#ifndef __ets__ +#include +#endif #include +#include #include "py/stream.h" #include "lib/crypto-algorithms/sha256.h"