about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/Makefile4
-rw-r--r--stdlib/stdlib.h10
2 files changed, 9 insertions, 5 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 91eaf60cfc..2682766c35 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -67,6 +67,10 @@ distribute := $(distribute) $(mpn-headers) gen-mpn-copy fpioconst.h
 
 generated += isomac isomac.out
 
+CFLAGS-bsearch.c = $(exceptions)
+CFLAGS-msort.c = $(exceptions)
+CFLAGS-qsort.c = $(exceptions)
+
 include ../Rules
 
 
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index b0703333d1..66ea4a589a 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -604,14 +604,14 @@ typedef __compar_fn_t comparison_fn_t;
 
 /* Do a binary search for KEY in BASE, which consists of NMEMB elements
    of SIZE bytes each, using COMPAR to perform the comparisons.  */
-extern __ptr_t bsearch __P ((__const __ptr_t __key, __const __ptr_t __base,
-			     size_t __nmemb, size_t __size,
-			     __compar_fn_t __compar));
+extern __ptr_t bsearch __PMS ((__const __ptr_t __key, __const __ptr_t __base,
+			       size_t __nmemb, size_t __size,
+			       __compar_fn_t __compar));
 
 /* Sort NMEMB elements of BASE, of SIZE bytes each,
    using COMPAR to perform the comparisons.  */
-extern void qsort __P ((__ptr_t __base, size_t __nmemb, size_t __size,
-			__compar_fn_t __compar));
+extern void qsort __PMS ((__ptr_t __base, size_t __nmemb, size_t __size,
+			  __compar_fn_t __compar));
 
 
 /* Return the absolute value of X.  */