This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Include stdlib.h in sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 5 Dec 2012 18:07:34 +0000
- Subject: Include stdlib.h in sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c
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