From 44c91e654102116f99f80635c483db49126730e8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 27 Nov 2002 23:02:15 +0000 Subject: Fixup sysconf to report the correct answer when UCLIBC_DYNAMIC_ATEXIT is enabled. --- include/stdlib.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 637bf705c..23f8bf208 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -579,7 +579,12 @@ extern void abort (void) __THROW __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) __THROW; /* The following is used by uClibc in atexit.c and sysconf.c */ -#define __UCLIBC_MAX_ATEXIT 20 +/* We have no limit when __UCLIBC_DYNAMIC_ATEXIT__ is enabled. */ +#ifdef __UCLIBC_DYNAMIC_ATEXIT__ +# define __UCLIBC_MAX_ATEXIT INT_MAX +#else +# define __UCLIBC_MAX_ATEXIT 20 +#endif #ifdef __USE_MISC -- cgit v1.2.3