quick fix for enabling native-border router to run under windows - need to cleanup the arguments
This commit is contained in:
parent
f9d5d71fde
commit
7482fd6962
1 changed files with 12 additions and 0 deletions
|
@ -172,6 +172,18 @@ main(int argc, char **argv)
|
||||||
contiki_argc = argc;
|
contiki_argc = argc;
|
||||||
contiki_argv = argv;
|
contiki_argv = argv;
|
||||||
|
|
||||||
|
/* native under windows is hardcoded to use the first one or two args */
|
||||||
|
/* for wpcap configuration so this needs to be "removed" from */
|
||||||
|
/* contiki_args (used by the native-border-router) */
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
contiki_argc--;
|
||||||
|
contiki_argv++;
|
||||||
|
#ifdef UIP_FALLBACK_INTERFACE
|
||||||
|
contiki_argc--;
|
||||||
|
contiki_argv++;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
process_init();
|
process_init();
|
||||||
process_start(&etimer_process, NULL);
|
process_start(&etimer_process, NULL);
|
||||||
ctimer_init();
|
ctimer_init();
|
||||||
|
|
Loading…
Reference in a new issue