mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:17:44 +00:00
LibCore: Fix building the library on macOS
This commit is contained in:
parent
1635942951
commit
f18895c0d6
3 changed files with 50 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue