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:
parent
75660c7bca
commit
d3243d719b
@ -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 ;
|
||||
|
11
src/kernel/libroot/posix/time/Jamfile
Normal file
11
src/kernel/libroot/posix/time/Jamfile
Normal 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
|
||||
;
|
21
src/kernel/libroot/posix/time/time.c
Normal file
21
src/kernel/libroot/posix/time/time.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user