diff options
-rw-r--r-- | device.c | 4 | ||||
-rw-r--r-- | netifd.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -3,14 +3,12 @@ #include <stdio.h> #include <assert.h> -#include <libubox/uapi.h> - #include "netifd.h" #include "system.h" static struct avl_tree devices; -static void API_CTOR dev_init(void) +static void __init dev_init(void) { avl_init(&devices, avl_strcmp, false, NULL); } @@ -19,6 +19,8 @@ #define DPRINTF(...) do {} while(0) #endif +#define __init __attribute__((constructor)) + struct device; struct interface; |