summaryrefslogtreecommitdiffstats
path: root/src/network/configure.json
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2017-08-09 15:42:03 -0700
committerThiago Macieira <thiago.macieira@intel.com>2017-08-24 03:47:12 +0000
commit643d19f87b09ef486afa64eb630153e482f8a6e9 (patch)
tree702c90fb9b2537ebe812e262294af5b4401f43d2 /src/network/configure.json
parent94c4827a9f3942ddde2f2371de4e1aab709995cb (diff)
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 <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/network/configure.json')
-rw-r--r--src/network/configure.json3
1 files changed, 2 insertions, 1 deletions
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"