Skip to content

Commit

Permalink
Workaround gcc/newlib issue on Ubuntu 24 (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
lurch authored Aug 22, 2024
1 parent 724236a commit 816a198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sha/mbedtls_sha256/mbedtls_sha256.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include <stdio.h>
#include <string.h>
// Include sys/types.h before inttypes.h to work around issue with
// certain versions of GCC and newlib which causes omission of PRIu64
#include <sys/types.h>
#include <inttypes.h>
#include <stdlib.h>

Expand Down
3 changes: 3 additions & 0 deletions sha/sha256/hello_sha256.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

#include <stdio.h>
#include <string.h>
// Include sys/types.h before inttypes.h to work around issue with
// certain versions of GCC and newlib which causes omission of PRIu64
#include <sys/types.h>
#include <inttypes.h>
#include <stdlib.h>

Expand Down

0 comments on commit 816a198

Please sign in to comment.