This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]