From 071c01b136b473bacea1ecfc77b4c98d830c6637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 10 May 2004 23:00:42 +0000 Subject: [PATCH] This should fix the R5 build again. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7511 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/sys/stat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/headers/posix/sys/stat.h b/headers/posix/sys/stat.h index cccd06777f..57902da9a4 100644 --- a/headers/posix/sys/stat.h +++ b/headers/posix/sys/stat.h @@ -102,9 +102,16 @@ extern int mkfifo(const char *path, mode_t mode); extern mode_t umask(mode_t cmask); // This achieves backwards compatibility with R5 +#if 0 #define stat(fd, st) _stat(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)) +#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 }