diff options
Diffstat (limited to 'test/stdlib/teston_exit.c')
-rw-r--r-- | test/stdlib/teston_exit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/stdlib/teston_exit.c b/test/stdlib/teston_exit.c index f7e8fd0..32518d6 100644 --- a/test/stdlib/teston_exit.c +++ b/test/stdlib/teston_exit.c @@ -66,6 +66,7 @@ static efuncp func_table[] = int main ( void ) { +#if defined(__GLIBC__) || defined(__UCLIBC__) int i = 0; unsigned long count = 0; int numfuncs = sizeof(func_table)/sizeof(efuncp); @@ -78,5 +79,8 @@ main ( void ) } printf("%lu functions registered with on_exit.\n", count); exit(count); +#else + return 23; +#endif } |