summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-05-04 11:39:37 +0000
committerRoy Marples <roy@marples.name>2016-05-04 11:39:37 +0000
commit7d83c719c1f91c27229066cd1217bf2e6ba0381f (patch)
tree325e1da49a79a3e2b8c87ac6d5c6c130ba3e996b /configure
parent7b4da2c26b95d25772016e1da48a8c93a85cf0cd (diff)
downloaddhcpcd-7d83c719c1f91c27229066cd1217bf2e6ba0381f.tar.xz
Fix reallocarray test
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index a58335ad..457ff082 100755
--- a/configure
+++ b/configure
@@ -902,8 +902,8 @@ if [ -z "$REALLOCARRAY" ]; then
#include <stdlib.h>
int main(void) {
- reallocarray(NULL, 0, 0);
- return 0;
+ void *foo = reallocarray(NULL, 0, 0);
+ return foo == NULL ? 1 : 0;
}
EOF
if $XCC _reallocarray.c -o _reallocarray 2>&3; then