1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 17:37:47 +00:00

LibCore: Fix building the library on macOS

This commit is contained in:
Gunnar Beutner 2021-05-01 13:08:25 +02:00 committed by Andreas Kling
parent 1635942951
commit f18895c0d6
3 changed files with 50 additions and 8 deletions

View file

@ -11,7 +11,11 @@
#include <AK/Types.h>
#include <AK/Vector.h>
#include <pwd.h>
#include <shadow.h>
#ifndef AK_OS_MACOS
# include <shadow.h>
#else
# include <LibC/shadow.h>
#endif
#include <sys/types.h>
namespace Core {
@ -52,7 +56,9 @@ private:
Account(const passwd& pwd, const spwd& spwd, Vector<gid_t> extra_gids);
String generate_passwd_file() const;
#ifndef AK_OS_MACOS
String generate_shadow_file() const;
#endif
String m_username;