X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-dummy.c;h=b3efa08b2c4399c639bd2f122d325149e9574923;hp=f24f686925a113abdc042dbd9c0cc11ba5e85185;hb=a7bb1dae88e9c4676c3e1545cefd7398d21603a4;hpb=f6fb6bee2c29f31d13d0b0288f4f680b6b56e9ba diff --git a/system-dummy.c b/system-dummy.c index f24f686..b3efa08 100644 --- a/system-dummy.c +++ b/system-dummy.c @@ -1,8 +1,13 @@ #include #include +#ifndef DEBUG +#define DEBUG +#endif + #include "netifd.h" #include "device.h" +#include "system.h" int system_bridge_addbr(struct device *bridge) { @@ -57,7 +62,7 @@ int system_if_check(struct device *dev) dev->ifindex = 0; if (!strcmp(dev->ifname, "eth0")) - set_device_present(dev, true); + device_set_present(dev, true); return 0; }