diff options
Diffstat (limited to 'chapter25/src/main/c')
| -rw-r--r-- | chapter25/src/main/c/simple_crt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter25/src/main/c/simple_crt.c b/chapter25/src/main/c/simple_crt.c index b79e6f88..8656a3cc 100644 --- a/chapter25/src/main/c/simple_crt.c +++ b/chapter25/src/main/c/simple_crt.c @@ -1,6 +1,10 @@ #include <stdint.h> #include <stdlib.h> #include <string.h> +#include <errno.h> + +// errno may be thread-local or a macro calling a platform accessor. +int32_t simple_errno(void) { return errno; } // Native process arguments converted to ordinary Simple array layouts. // The outer array is mutable; every contained byte array is published as |
