Merge pull request #203 from mmuman/cleanup-and-fixes-002
Cleanup and fixes 002
This commit is contained in:
commit
96e85cc69a
|
@ -52,6 +52,7 @@
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "ctk/ctk.h"
|
#include "ctk/ctk.h"
|
||||||
#include "ctk/ctk-draw.h"
|
#include "ctk/ctk-draw.h"
|
||||||
|
#include "sys/log.h"
|
||||||
|
|
||||||
#include "program-handler.h"
|
#include "program-handler.h"
|
||||||
|
|
||||||
|
|
|
@ -111,7 +111,7 @@ tapdev_init(void)
|
||||||
memset(&ifr, 0, sizeof(ifr));
|
memset(&ifr, 0, sizeof(ifr));
|
||||||
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
|
||||||
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
|
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
|
||||||
perror(buf);
|
perror("ioctl(TUNSETIFF)");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#ifndef __CONTIKI_CONF_H__
|
#ifndef __CONTIKI_CONF_H__
|
||||||
#define __CONTIKI_CONF_H__
|
#define __CONTIKI_CONF_H__
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define CC_CONF_REGISTER_ARGS 1
|
#define CC_CONF_REGISTER_ARGS 1
|
||||||
#define CC_CONF_FASTCALL __fastcall
|
#define CC_CONF_FASTCALL __fastcall
|
||||||
#define CC_CONF_INLINE __inline
|
#define CC_CONF_INLINE __inline
|
||||||
|
|
Loading…
Reference in a new issue