1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 18:17:34 +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

@ -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