]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
configure: fix the closefrom test
authorRoy Marples <roy@marples.name>
Fri, 24 May 2024 12:23:37 +0000 (13:23 +0100)
committerRoy Marples <roy@marples.name>
Fri, 24 May 2024 12:23:37 +0000 (13:23 +0100)
Fixes #327.

configure

index 8bc65184078c0e342a78b4759e53f5cdb2dbfcc9..0a28a0cff7775f58cb1df8e16797273dc4f14014 100755 (executable)
--- a/configure
+++ b/configure
@@ -816,7 +816,8 @@ if [ -z "$CLOSEFROM" ]; then
        cat <<EOF >_closefrom.c
 #include <unistd.h>
 int main(void) {
-       return closefrom(3);
+       closefrom(3);
+       return 0;
 }
 EOF
        if $XCC _closefrom.c -o _closefrom 2>&3; then