This should fix the R5 build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7511 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -102,9 +102,16 @@ extern int mkfifo(const char *path, mode_t mode);
|
|||||||
extern mode_t umask(mode_t cmask);
|
extern mode_t umask(mode_t cmask);
|
||||||
|
|
||||||
// This achieves backwards compatibility with R5
|
// This achieves backwards compatibility with R5
|
||||||
|
#if 0
|
||||||
#define stat(fd, st) _stat(fd, st, sizeof(struct stat))
|
#define stat(fd, st) _stat(fd, st, sizeof(struct stat))
|
||||||
#define fstat(fd, st) _fstat(fd, st, sizeof(struct stat))
|
#define fstat(fd, st) _fstat(fd, st, sizeof(struct stat))
|
||||||
#define lstat(fd, st) _lstat(fd, st, sizeof(struct stat))
|
#define lstat(fd, st) _lstat(fd, st, sizeof(struct stat))
|
||||||
|
#else
|
||||||
|
// ... and this fixes the build for R5 for now
|
||||||
|
extern int stat(const char *path, struct stat *st);
|
||||||
|
extern int fstat(int fd, struct stat *st);
|
||||||
|
extern int lstat(const char *path, struct stat *st);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user