diff --git a/platform/apple2enh/contiki-main.c b/platform/apple2enh/contiki-main.c
index f032edc0c..ac7966788 100644
--- a/platform/apple2enh/contiki-main.c
+++ b/platform/apple2enh/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $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)
diff --git a/platform/c128/contiki-main.c b/platform/c128/contiki-main.c
index 80a13104d..b929bb5ba 100644
--- a/platform/c128/contiki-main.c
+++ b/platform/c128/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $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
@@ -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 *)
{
}
/*-----------------------------------------------------------------------------------*/