mirror of
https://review.haiku-os.org/haiku
synced 2025-02-10 15:49:27 +01:00
This completes the final 1/3 of #8857. Changes again by nielx with style fixes by me. The one part that I couldn't figure out, and maybe Ingo can chime in here. If headers/build/host/darwin/sys/stat.h is surrounded in extern "C" { } guards then I get a link error complaining that the functions defined here are duplicate symbols, once in fs.o and once in function_remapper.o. For example: ld: duplicate symbol _futimens in generated/objects/darwin/x86_64/release/build/libroot/libroot_build_function_remapper.a(function_remapper.o) and generated/objects/darwin/x86_64/release/build/libroot/libroot_build.a(fs.o) for architecture x86_64 I'm not sure why that is.
21 lines
555 B
C
21 lines
555 B
C
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_UNISTD
|
|
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_UNISTD
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include_next <unistd.h>
|
|
|
|
int faccessat(int fd, const char* path, int accessMode, int flag);
|
|
int fchownat(int fd, const char* path, uid_t owner, gid_t group, int flag);
|
|
ssize_t readlinkat(int fd, const char *path, char *buffer, size_t bufferSize);
|
|
int linkat(int oldFD, const char *oldPath, int newFD, const char *newPath,
|
|
int flag);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_UNISTD
|