Skip to content

Commit

Permalink
[Newlib] Attempt to provide an errno symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
codyd51 committed Mar 24, 2024
1 parent 34db9b0 commit 1e4c085
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
x86_64-toolchain
axle-sysroot
scripts/mkinitrd/target
key: libc-and-toolchain
key: libc-and-toolchain-cachebuster

- name: Build libc and toolchain
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions scripts/newlib.patch
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ index 0000000..c2926ca
+#include <stdbool.h>
+#include <stdint.h>
+
+// Ref: https://sourceware.org/newlib/libc.html#Stubs
+#undef errno
+extern int errno;
+
+#include "syscalls.h"
+
+// amc syscalls
Expand Down

0 comments on commit 1e4c085

Please sign in to comment.