Add inline fls() function for linux
[project/netifd.git] / system-dummy.c
index f24f686..b3efa08 100644 (file)
@@ -1,8 +1,13 @@
 #include <stdio.h>
 #include <string.h>
 
+#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;
 }