From 0fa00a1b1e1be5f4561883341c38f6dd4f5c9af3 Mon Sep 17 00:00:00 2001 From: nipos Date: Sun, 27 Aug 2023 21:37:02 +0200 Subject: [PATCH] LibCore: Don't implement adjtime on Haiku --- Userland/Libraries/LibCore/System.cpp | 2 +- Userland/Libraries/LibCore/System.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibCore/System.cpp b/Userland/Libraries/LibCore/System.cpp index 1063afd5aa..f52594fd45 100644 --- a/Userland/Libraries/LibCore/System.cpp +++ b/Userland/Libraries/LibCore/System.cpp @@ -1240,7 +1240,7 @@ ErrorOr uname() return uts; } -#ifndef AK_OS_ANDROID +#if !defined(AK_OS_ANDROID) && !defined(AK_OS_HAIKU) ErrorOr adjtime(const struct timeval* delta, struct timeval* old_delta) { # ifdef AK_OS_SERENITY diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index 9baf178154..c905dae160 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -188,7 +188,7 @@ ErrorOr utime(StringView path, Optional); ErrorOr utimensat(int fd, StringView path, struct timespec const times[2], int flag); ErrorOr uname(); ErrorOr> pipe2(int flags); -#ifndef AK_OS_ANDROID +#if !defined(AK_OS_ANDROID) && !defined(AK_OS_HAIKU) ErrorOr adjtime(const struct timeval* delta, struct timeval* old_delta); #endif enum class SearchInPath {