[uClibc-cvs] uClibc/include stdlib.h,1.32,1.33
Erik Andersen
andersen at codepoet.org
Wed Nov 27 23:02:21 UTC 2002
Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv32289/include
Modified Files:
stdlib.h
Log Message:
Fixup sysconf to report the correct answer when UCLIBC_DYNAMIC_ATEXIT
is enabled.
Index: stdlib.h
===================================================================
RCS file: /var/cvs/uClibc/include/stdlib.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- stdlib.h 25 Aug 2002 22:04:38 -0000 1.32
+++ stdlib.h 27 Nov 2002 23:02:15 -0000 1.33
@@ -579,7 +579,12 @@
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
More information about the uClibc-cvs
mailing list