summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-12-12 14:16:59 +0100
committerDamien George <damien@micropython.org>2023-01-12 16:04:57 +1100
commitf24cfd1a69df9ef1a8233c5bd57c56f701762b49 (patch)
tree40018f00c80d88fbdbdafca09106b0cb20c89ef3
parent699477d12d1aa1cb57ff6cfc3f5dc5e97524dbe6 (diff)
downloadmicropython-f24cfd1a69df9ef1a8233c5bd57c56f701762b49.tar.gz
micropython-f24cfd1a69df9ef1a8233c5bd57c56f701762b49.zip
extmod/axtls-include: Add back needed header files for building axTLS.
MicroPython overrides the axTLS port configuration file, but fails to include <arpa/inet.h> (needed for htonl) and <sys/time.h> (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 <damien@micropython.org>
-rw-r--r--extmod/axtls-include/axtls_os_port.h4
1 files changed, 4 insertions, 0 deletions
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 <arpa/inet.h>
+#endif
#include <errno.h>
+#include <sys/time.h>
#include "py/stream.h"
#include "lib/crypto-algorithms/sha256.h"