Browse Source

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 2 years ago
committed by Damien George
parent
commit
f24cfd1a69
  1. 4
      extmod/axtls-include/axtls_os_port.h

4
extmod/axtls-include/axtls_os_port.h

@ -26,7 +26,11 @@
#ifndef AXTLS_OS_PORT_H #ifndef AXTLS_OS_PORT_H
#define AXTLS_OS_PORT_H #define AXTLS_OS_PORT_H
#ifndef __ets__
#include <arpa/inet.h>
#endif
#include <errno.h> #include <errno.h>
#include <sys/time.h>
#include "py/stream.h" #include "py/stream.h"
#include "lib/crypto-algorithms/sha256.h" #include "lib/crypto-algorithms/sha256.h"

Loading…
Cancel
Save