Skip to content

Commit

Permalink
LibCore: Only include BeepInstruction in System.cpp on Serenity
Browse files Browse the repository at this point in the history
It remains to be seen whether we actually need this on serenity either..
  • Loading branch information
ADKaster committed Jun 6, 2024
1 parent 8f7f0e0 commit 9ab5b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
14 changes: 0 additions & 14 deletions Kernel/API/BeepInstruction.h

This file was deleted.

3 changes: 2 additions & 1 deletion Userland/Libraries/LibCore/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <AK/StdLibExtras.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <Kernel/API/BeepInstruction.h>
#include <LibCore/Environment.h>
#include <LibCore/SessionManagement.h>
#include <LibCore/System.h>
Expand All @@ -29,6 +28,7 @@
#include <unistd.h>

#ifdef AK_OS_SERENITY
# include <Kernel/API/BeepInstruction.h>
# include <Kernel/API/Unveil.h>
# include <LibCore/Account.h>
# include <serenity.h>
Expand Down Expand Up @@ -623,6 +623,7 @@ ErrorOr<struct stat> stat(StringView path)
}

ErrorOr<struct stat> lstat(StringView path)

{
if (!path.characters_without_null_termination())
return Error::from_syscall("lstat"sv, -EFAULT);
Expand Down

0 comments on commit 9ab5b18

Please sign in to comment.