Include stdlib.h in sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
Joseph S. Myers
joseph@codesourcery.com
Wed Dec 5 18:07:00 GMT 2012
sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c uses qsort but is missing an
include of <stdlib.h>, so causing a warning "implicit declaration of
function 'qsort'" (seen in powerpc-nofpu testing). This patch fixes
this (tested powerpc-nofpu) by adding such an include.
2012-12-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
diff --git a/sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c b/sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
index 4379b68..9631b07 100644
--- a/sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
+++ b/sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
@@ -19,6 +19,7 @@
#include <math.h>
#include <math_private.h>
#include <float.h>
+#include <stdlib.h>
/* Calculate X + Y exactly and store the result in *HI + *LO. It is
given that |X| >= |Y| and the values are small enough that no
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list