]> sourceware.org Git - glibc.git/commitdiff
Add missing include for stdlib.h.
authorCarlos O'Donell <carlos@redhat.com>
Fri, 28 Oct 2016 16:43:15 +0000 (12:43 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 28 Oct 2016 16:45:27 +0000 (12:45 -0400)
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.

ChangeLog
math/test-nan-overflow.c

index 995720ec690340ad931e34d4bdb964e6d4e1ec20..6c6caab25df1653e7b80d474b26f0377f422cb68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-10-28  Carlos O'Donell  <carlos@redhat.com>
+
+       * math/test-nan-overflow.c: Include stdlib.h for malloc.
+
 2016-10-28  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #20019]
index 40aae2ed1442f030742dcffdefd920d5d343c248..745a044b960cc21d04b10a1e1939b4d9c4384b2f 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/resource.h>
+#include <stdlib.h>
 
 #define STACK_LIM 1048576
 #define STRING_SIZE (2 * STACK_LIM)
This page took 0.156804 seconds and 5 git commands to generate.