summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/search.h5
-rw-r--r--include/stdlib.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/include/search.h b/include/search.h
index b9c8a1785..b3b498543 100644
--- a/include/search.h
+++ b/include/search.h
@@ -34,12 +34,17 @@ For now the file can be distributed under the LGPL. */
#define __need_NULL
#include <stddef.h>
+/* Get __compar_fn_t from stdlib.h */
+#include <stdlib.h>
+
__BEGIN_DECLS
+#if 0
#ifndef __COMPAR_FN_T
#define __COMPAR_FN_T
typedef int (*__compar_fn_t) __P ((__const __ptr_t, __const __ptr_t));
#endif
+#endif
/* for use with hsearch(3) */
diff --git a/include/stdlib.h b/include/stdlib.h
index 18a32e62f..54c2a6fa7 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -93,7 +93,8 @@ extern int setenv __P ((__const char *__name, __const char *__value,
extern int system __P ((__const char *__command));
extern void unsetenv __P ((__const char *__name));
-
+/* The following is used by uClibc in atexit.c and sysconf.c */
+#define __UCLIBC_MAX_ATEXIT 20
/* Search and sort functions */
extern __ptr_t bsearch __P ((__const __ptr_t __key, __const __ptr_t __base,