options/ansi: Add POSIX timezone variables

This commit is contained in:
Alexander van der Grinten 2020-04-19 19:41:02 +02:00
parent 262171539d
commit b972ba7eeb
2 changed files with 9 additions and 0 deletions

View file

@ -14,6 +14,11 @@
#include <mlibc/file-window.hpp>
#include <mlibc/sysdeps.hpp>
// Variables defined by POSIX.
int daylight;
long timezone;
char *tzname[2];
clock_t clock(void) {
__ensure(!"Not implemented");
__builtin_unreachable();

View file

@ -81,6 +81,10 @@ void tzset(void);
extern "C" {
#endif
extern int daylight;
extern long timezone;
extern char *tzname[2];
int nanosleep(const struct timespec *, struct timespec *);
int clock_getres(clockid_t, struct timespec *);