Changeset 15555


Ignore:
Timestamp:
2009-05-02T12:01:09+02:00 (7 years ago)
Author:
florian
Message:

[package] prevent kmod-switch from accessing nvram on brcm63xx (#5035)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/switch/src/switch-robo.c

    r15319 r15555  
    6969#endif 
    7070 
    71  
     71/* Only available on brcm-2.4/brcm47xx */ 
     72#ifdef BROADCOM 
    7273extern char *nvram_get(const char *name); 
    7374#define getvar(str) (nvram_get(str)?:"") 
     75#else 
     76#define getvar(str) NULL 
     77#endif 
    7478 
    7579/* Data structure for a Roboswitch device. */ 
Note: See TracChangeset for help on using the changeset viewer.