X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/176570cee9db5f34422746cfb8b786c5e7243697..1fb1edc523a19eedf9aab0c5e031a3ed68f3325c:/package/switch/src/switch-robo.c diff --git a/package/switch/src/switch-robo.c b/package/switch/src/switch-robo.c index 21343edf0..a0051a32f 100644 --- a/package/switch/src/switch-robo.c +++ b/package/switch/src/switch-robo.c @@ -68,9 +68,13 @@ #define bool int #endif - +/* Only available on brcm-2.4/brcm47xx */ +#ifdef BROADCOM extern char *nvram_get(const char *name); #define getvar(str) (nvram_get(str)?:"") +#else +#define getvar(str) "" +#endif /* Data structure for a Roboswitch device. */ struct robo_switch {