Revision 0ac8e58f3818795d02ac309bd57b4d93ec283a77 authored by Florian Fainelli on 09 August 2011, 11:24:17 UTC, committed by Will Deacon on 12 August 2011, 14:40:20 UTC
libio.h is not provided by uClibc, in order to be able to test the definition of __UCLIBC__ we need to include stdlib.h, which also includes stddef.h, providing the definition of 'NULL'. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 322a8b0
gcc-x86_32-has-stack-protector.sh
#!/bin/sh
echo "int foo(void) { char X[200]; return 3; }" | $* -S -xc -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
if [ "$?" -eq "0" ] ; then
echo y
else
echo n
fi
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...