Added an empty time() implementation (just returns zero) to let the kernel

build again.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-11-16 17:43:28 +00:00
parent 75660c7bca
commit d3243d719b
3 changed files with 33 additions and 0 deletions

View File

@ -27,3 +27,4 @@ SubInclude OBOS_TOP src kernel libroot posix stdlib ;
SubInclude OBOS_TOP src kernel libroot posix unistd ;
SubInclude OBOS_TOP src kernel libroot posix sys ;
SubInclude OBOS_TOP src kernel libroot posix math ;
SubInclude OBOS_TOP src kernel libroot posix time ;

View File

@ -0,0 +1,11 @@
SubDir OBOS_TOP src kernel libroot posix time ;
KernelMergeObject posix_time.o :
<$(SOURCE_GRIST)>time.c
:
-fPIC -DPIC
;
MergeObjectFromObjects kernel_posix_time.o :
<$(SOURCE_GRIST)>time.o
;

View File

@ -0,0 +1,21 @@
/*
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <time.h>
#include <syscalls.h>
time_t
time(time_t *timer)
{
// ToDo: implement time()
if (timer)
*timer = 0;
return 0;
}