mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:57:47 +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
|
@ -6,7 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <bits/FILE.h>
|
||||
#ifndef AK_OS_MACOS
|
||||
# include <bits/FILE.h>
|
||||
#endif
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
@ -24,6 +26,7 @@ struct spwd {
|
|||
unsigned long int sp_flag;
|
||||
};
|
||||
|
||||
#ifndef AK_OS_MACOS
|
||||
struct spwd* getspent();
|
||||
void setspent();
|
||||
void endspent();
|
||||
|
@ -35,5 +38,6 @@ int getspnam_r(const char* name, struct spwd* spbuf, char* buf, size_t buflen, s
|
|||
|
||||
int fgetspent_r(FILE* fp, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
|
||||
int sgetspent_r(const char* s, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue