mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Renamed error(3) to gnu_error(3), but with a redirect.
This fixes compatibility issues with programs that like to make their own error function. This includes zlib and gzip.
This commit is contained in:
parent
271c64e537
commit
309416c291
2 changed files with 5 additions and 2 deletions
|
@ -29,7 +29,10 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
void error(int status, int errnum, const char *format, ...);
|
||||
void gnu_error(int status, int errnum, const char *format, ...);
|
||||
#if __SORTIX_STDLIB_REDIRECTS
|
||||
void error(int status, int errnum, const char *format, ...) asm("gnu_error");
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ namespace Maxsi
|
|||
return result;
|
||||
}
|
||||
|
||||
extern "C" void error(int status, int errnum, const char *format, ...)
|
||||
extern "C" void gnu_error(int status, int errnum, const char *format, ...)
|
||||
{
|
||||
fprintf(stderr, "%s: ", program_invocation_name);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue