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:
bd08017309

Signed-off-by: Damien George <damien@micropython.org>
pull/10203/head
Florian Weimer 2022-12-12 14:16:59 +01:00 zatwierdzone przez Damien George
rodzic 699477d12d
commit f24cfd1a69
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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"