Merge pull request #203 from mmuman/cleanup-and-fixes-002

Cleanup and fixes 002
This commit is contained in:
Oliver Schmidt 2013-04-22 04:51:44 -07:00
commit 96e85cc69a
3 changed files with 6 additions and 1 deletions

View file

@ -52,6 +52,7 @@
#include "contiki.h"
#include "ctk/ctk.h"
#include "ctk/ctk-draw.h"
#include "sys/log.h"
#include "program-handler.h"

View file

@ -111,7 +111,7 @@ tapdev_init(void)
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TAP|IFF_NO_PI;
if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) {
perror(buf);
perror("ioctl(TUNSETIFF)");
exit(1);
}
}

View file

@ -1,6 +1,10 @@
#ifndef __CONTIKI_CONF_H__
#define __CONTIKI_CONF_H__
#ifdef __CYGWIN__
#include <sys/types.h>
#endif
#define CC_CONF_REGISTER_ARGS 1
#define CC_CONF_FASTCALL __fastcall
#define CC_CONF_INLINE __inline