Skip to content

Commit 556721c

Browse files
committed
Detect route(4) better
1 parent fd33191 commit 556721c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

configure

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,13 @@ rm -rf _inet_ntoa.* _inet_ntoa
592592
$abort && exit 1
593593

594594
if [ -z "$LINK_SRC" ]; then
595-
printf "Testing for route ..."
595+
printf "Testing for route ... "
596596
cat << EOF >_route.c
597597
#include <net/route.h>
598598
int main(void) {
599-
#ifdef RTM_IFINFO
599+
struct rt_msghdr rtm = { .rtm_type = 0 };
600+
rtm.rtm_type = RTM_IFINFO;
600601
return 0;
601-
#endif
602602
}
603603
EOF
604604
if $XCC _route.c -o _route 2>&3; then

0 commit comments

Comments
 (0)