From: Carlos O'Donell Date: Fri, 28 Oct 2016 16:43:15 +0000 (-0400) Subject: Add missing include for stdlib.h. X-Git-Tag: glibc-2.25~366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c31746887dc5007f7b77f8f99b5e9335bebec167;p=thirdparty%2Fglibc.git Add missing include for stdlib.h. The test math/test-nan-overflow uses malloc without including stdlib.h. On -Os builds for i486 the header inclusion order is altered enough that the test fails to build because of the warning which is turned into an error. The obvious fix is to include stdlib.h since malloc is being used directly. --- diff --git a/ChangeLog b/ChangeLog index 995720ec690..6c6caab25df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2016-10-28 Carlos O'Donell + + * math/test-nan-overflow.c: Include stdlib.h for malloc. + 2016-10-28 H.J. Lu [BZ #20019] diff --git a/math/test-nan-overflow.c b/math/test-nan-overflow.c index 40aae2ed144..745a044b960 100644 --- a/math/test-nan-overflow.c +++ b/math/test-nan-overflow.c @@ -20,6 +20,7 @@ #include #include #include +#include #define STACK_LIM 1048576 #define STRING_SIZE (2 * STACK_LIM)