aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-12-01 17:59:38 -0600
committerRob Landley <rob@landley.net>2012-12-01 17:59:38 -0600
commit62fd9d0b36d8f56a002ea88621b2f895ea55abb8 (patch)
treed316848e434b86e97966d0d49df3a62616af78d2
parent55970d0c2c0c78ebe386cf000129435476057817 (diff)
downloadtoybox-62fd9d0b36d8f56a002ea88621b2f895ea55abb8.tar.gz
Fix ancient glibc workaround to force fstatat64
-rw-r--r--lib/portability.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 4903de11..859a57cf 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -44,7 +44,8 @@ ssize_t getdelim(char **lineptr, size_t *n, int delim, FILE *stream);
#define AT_FDCWD -100
#define AT_SYMLINK_NOFOLLOW 0x100
#define AT_REMOVEDIR 0x200
-int fstatat(int dirfd, const char *pathname, void *buf, int flags);
+#define fstatat fstatat64
+int fstatat64(int dirfd, const char *pathname, void *buf, int flags);
int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz);
char *stpcpy(char *dest, const char *src);
#include <sys/stat.h>