Skip to content

Commit 816a198

Browse files
authored
Workaround gcc/newlib issue on Ubuntu 24 (#526)
1 parent 724236a commit 816a198

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sha/mbedtls_sha256/mbedtls_sha256.c

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
#include <stdio.h>
88
#include <string.h>
9+
// Include sys/types.h before inttypes.h to work around issue with
10+
// certain versions of GCC and newlib which causes omission of PRIu64
11+
#include <sys/types.h>
912
#include <inttypes.h>
1013
#include <stdlib.h>
1114

sha/sha256/hello_sha256.c

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
#include <stdio.h>
88
#include <string.h>
9+
// Include sys/types.h before inttypes.h to work around issue with
10+
// certain versions of GCC and newlib which causes omission of PRIu64
11+
#include <sys/types.h>
912
#include <inttypes.h>
1013
#include <stdlib.h>
1114

0 commit comments

Comments
 (0)