Added lseek dummy.

This commit is contained in:
oliverschmidt 2008-07-06 07:34:34 +00:00
parent fa956117f7
commit 86bd7e9829
2 changed files with 20 additions and 8 deletions

View file

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-main.c,v 1.17 2008/02/28 21:36:37 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.18 2008/07/06 07:37:34 oliverschmidt Exp $
*/
#include "contiki-net.h"
@ -58,6 +58,12 @@ PROCINIT(&etimer_process,
void clock_update(void);
/*-----------------------------------------------------------------------------------*/
off_t __fastcall__
lseek(int, off_t, int)
{
return -1;
}
/*-----------------------------------------------------------------------------------*/
void
main(void)

View file

@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt <ol.sc@web.de>
*
* $Id: contiki-main.c,v 1.4 2008/02/28 21:56:47 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.5 2008/07/06 07:34:34 oliverschmidt Exp $
*/
#include <string.h>
@ -59,20 +59,26 @@ PROCINIT(&etimer_process,
&tcpip_process);
/*-----------------------------------------------------------------------------------*/
void *
opendir(void)
off_t __fastcall__
lseek(int, off_t, int)
{
return -1;
}
/*-----------------------------------------------------------------------------------*/
void * __fastcall__
opendir(void *)
{
return NULL;
}
/*-----------------------------------------------------------------------------------*/
void *
readdir(void)
void * __fastcall__
readdir(void *)
{
return NULL;
}
/*-----------------------------------------------------------------------------------*/
void
closedir(void)
void __fastcall__
closedir(void *)
{
}
/*-----------------------------------------------------------------------------------*/