diff --git a/src/ansi-c/library/errno.c b/src/ansi-c/library/errno.c index 7c5a9bcbce0..e19ac3a6d1b 100644 --- a/src/ansi-c/library/errno.c +++ b/src/ansi-c/library/errno.c @@ -44,3 +44,14 @@ extern int *__errno(void) { return &__CPROVER_errno; } + +/* FUNCTION: ___errno */ + +// This has been spotted on Solaris + +__CPROVER_thread_local int __CPROVER_errno; + +extern int *___errno(void) +{ + return &__CPROVER_errno; +}