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> * 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" #include "contiki-net.h"
@ -58,6 +58,12 @@ PROCINIT(&etimer_process,
void clock_update(void); void clock_update(void);
/*-----------------------------------------------------------------------------------*/
off_t __fastcall__
lseek(int, off_t, int)
{
return -1;
}
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void void
main(void) main(void)

View File

@ -30,7 +30,7 @@
* *
* Author: Oliver Schmidt <ol.sc@web.de> * 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> #include <string.h>
@ -59,20 +59,26 @@ PROCINIT(&etimer_process,
&tcpip_process); &tcpip_process);
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void * off_t __fastcall__
opendir(void) lseek(int, off_t, int)
{
return -1;
}
/*-----------------------------------------------------------------------------------*/
void * __fastcall__
opendir(void *)
{ {
return NULL; return NULL;
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void * void * __fastcall__
readdir(void) readdir(void *)
{ {
return NULL; return NULL;
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/
void void __fastcall__
closedir(void) closedir(void *)
{ {
} }
/*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/