LocalIP (Linux): fix build on Android

This commit is contained in:
李通洲
2023-07-17 23:03:56 +08:00
parent f34d51b911
commit 59dc2f82e3
+1 -1
View File
@@ -23,7 +23,7 @@ static bool getDefaultRoute(char iface[IF_NAMESIZE + 1])
FILE* FF_AUTO_CLOSE_FILE netRoute = fopen("/proc/net/route", "r");
// skip first line
flockfile(netRoute);
while (fgetc_unlocked(netRoute) != '\n');
while (getc_unlocked(netRoute) != '\n');
funlockfile(netRoute);
unsigned long long destination; //, gateway, flags, refCount, use, metric, mask, mtu,