define _GNU_SOURCE and include stdio.h in ubus.c to fix a compile error
[project/netifd.git] / netifd.h
index 1bb3820..d034e7a 100644 (file)
--- a/netifd.h
+++ b/netifd.h
 
 #include "utils.h"
 
+#ifdef DUMMY_MODE
+#define DEFAULT_MAIN_PATH      "./dummy"
+#define DEFAULT_HOTPLUG_PATH   "./scripts/hotplug-cmd"
+#define DEFAULT_RESOLV_CONF    "./tmp/resolv.conf"
+#else
+#define DEFAULT_MAIN_PATH      "/lib/netifd"
+#define DEFAULT_HOTPLUG_PATH   "/sbin/hotplug-cmd"
+#define DEFAULT_RESOLV_CONF    "/tmp/resolv.conf.auto"
+#endif
+
+extern const char *resolv_conf;
+extern char *hotplug_cmd_path;
 extern unsigned int debug_mask;
 
 enum {