From 643d19f87b09ef486afa64eb630153e482f8a6e9 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 9 Aug 2017 15:42:03 -0700 Subject: QNetworkInterface: Fold the test for if_nameindex into the config test No need to make workarounds for Android in the .cpp source. Just let it fail (if it still has to fail). Change-Id: Iaf4157b7efa2416d898cfffd14d94ebcb4d979be Reviewed-by: Oswald Buddenhagen --- src/network/configure.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network/configure.json') diff --git a/src/network/configure.json b/src/network/configure.json index 6e7ce25051..916448a727 100644 --- a/src/network/configure.json +++ b/src/network/configure.json @@ -135,7 +135,8 @@ "main": [ "char buf[IFNAMSIZ];", "if_nametoindex(\"eth0\");", - "if_indextoname(1, buf);" + "if_indextoname(1, buf);", + "if_freenameindex(if_nameindex());" ] }, "use": "network" -- cgit v1.2.3