diff options
author | Carlos O'Donell <carlos@redhat.com> | 2016-10-28 12:43:15 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2016-10-28 12:45:27 -0400 |
commit | c31746887dc5007f7b77f8f99b5e9335bebec167 (patch) | |
tree | 0a5ad1f722bc30ab5991a2c6d1b738386b8bfdb3 /math | |
parent | 0e6d3adc60d8073397af6a320e594d98d7fbedde (diff) | |
download | glibc-c31746887dc5007f7b77f8f99b5e9335bebec167.zip glibc-c31746887dc5007f7b77f8f99b5e9335bebec167.tar.gz glibc-c31746887dc5007f7b77f8f99b5e9335bebec167.tar.bz2 |
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.
Diffstat (limited to 'math')
-rw-r--r-- | math/test-nan-overflow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/math/test-nan-overflow.c b/math/test-nan-overflow.c index 40aae2e..745a044 100644 --- a/math/test-nan-overflow.c +++ b/math/test-nan-overflow.c @@ -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) |