Skip to content

Commit

Permalink
extmod/axtls-include: Add back needed header files for building axTLS.
Browse files Browse the repository at this point in the history
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:
micropython/axtls@bd08017

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
fweimer-rh authored and dpgeorge committed Jan 12, 2023
1 parent 699477d commit f24cfd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extmod/axtls-include/axtls_os_port.h
Expand Up @@ -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"

Expand Down

0 comments on commit f24cfd1

Please sign in to comment.