Skip to content

Commit b03d00e

Browse files
committed
iface: add missing ifdef around Linux specific code path
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent e0b0651 commit b03d00e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/iface.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ struct iface *iface_find_by_name(const char *ifname)
159159
{
160160
struct iface *candidate = NULL;
161161
struct iface *iface;
162-
char *nm, *ptr;
162+
#ifdef __linux__
163+
char *ptr;
164+
#endif
165+
char *nm;
163166

164167
if (!ifname)
165168
return NULL;

0 commit comments

Comments
 (0)