diff --git a/src/kernel/libroot/posix/time/Jamfile b/src/kernel/libroot/posix/time/Jamfile index 1bb0ffeca5..9277bf358b 100644 --- a/src/kernel/libroot/posix/time/Jamfile +++ b/src/kernel/libroot/posix/time/Jamfile @@ -6,6 +6,7 @@ KernelMergeObject posix_time.o : <$(SOURCE_GRIST)>difftime.c <$(SOURCE_GRIST)>localtime.c <$(SOURCE_GRIST)>mktime.c + <$(SOURCE_GRIST)>strftime.cpp <$(SOURCE_GRIST)>time.c : -fPIC -DPIC diff --git a/src/kernel/libroot/posix/time/strftime.cpp b/src/kernel/libroot/posix/time/strftime.cpp new file mode 100644 index 0000000000..8c3d4fb2e3 --- /dev/null +++ b/src/kernel/libroot/posix/time/strftime.cpp @@ -0,0 +1,19 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + + +#include + +#include +#include + + +extern "C" size_t +strftime(char *buffer, size_t bufferSize, const char *format, const struct tm *tm) +{ + // ToDo: implement (or copy) strftime() + return strlcpy(buffer, "99-Sep-99", bufferSize); +} +