Add fopendir() to fs_darwin.cpp and fix symlinkat().

This completes 2/3 of #8857 and is courtesy of nielx.
This commit is contained in:
John Scipione
2012-08-11 17:56:22 -04:00
parent e68cc8b0a4
commit ef7e9d6b9b
4 changed files with 46 additions and 5 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_DIRENT
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_DIRENT
#ifdef __cplusplus
extern "C" {
#endif
#include_next <dirent.h>
DIR* fdopendir(int fd);
#ifdef __cplusplus
}
#endif
#endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_DIRENT
+1 -1
View File
@@ -6,6 +6,6 @@
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#define __PDP_ENDIAN PDP_ENDIAN
#define __BYTE_ORDER BYTE_ORDER
#define __BYTE_ORDER BYTE_ORDER
#endif // _HAIKU_BUILD_COMPATIBILITY_DARWIN_ENDIAN
+1 -1
View File
@@ -14,7 +14,7 @@
__BEGIN_DECLS
/* assume that futimens() and utimensat() aren't available */
int futimens(int fd, const struct timespec times[2]);
int futimens(int fd, const struct timespec times[2]);
int utimensat(int fd, const char* path, const struct timespec times[2],
int flag);