Skip to content

Commit 1e4c085

Browse files
committed
[Newlib] Attempt to provide an errno symbol
1 parent 34db9b0 commit 1e4c085

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
x86_64-toolchain
3939
axle-sysroot
4040
scripts/mkinitrd/target
41-
key: libc-and-toolchain
41+
key: libc-and-toolchain-cachebuster
4242

4343
- name: Build libc and toolchain
4444
shell: bash

scripts/newlib.patch

+4
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ index 0000000..c2926ca
119119
+#include <stdbool.h>
120120
+#include <stdint.h>
121121
+
122+
+// Ref: https://sourceware.org/newlib/libc.html#Stubs
123+
+#undef errno
124+
+extern int errno;
125+
+
122126
+#include "syscalls.h"
123127
+
124128
+// amc syscalls

0 commit comments

Comments
 (0)