shithub: scc

Download patch

ref: 9910099b383e28a0a8b9b8c26ea99a5a2d77f5b3
parent: 645a0547e01cdc2925889185d7777ef1ea4684e7
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Aug 28 07:34:54 EDT 2021

libc: Fix external declaration of _exitf

_ATEXIT_MAX is defined in stdlib.h and not all the files
where libc.h is included have that definition. The best
option is just to omit the size of the array in the
declaraton.

--- a/src/libc/libc.h
+++ b/src/libc/libc.h
@@ -54,5 +54,5 @@
 extern char *_tzname[2];
 extern struct tzone tzones[];
 
-extern void (*_exitf[_ATEXIT_MAX])(void);
+extern void (*_exitf[])(void);
 extern unsigned _exitn;