diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-08-02 09:55:58 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-08-02 09:55:58 +0000 |
commit | 8a915880e7c86534859353f40ee18fbbe8004c26 (patch) | |
tree | 5fd7368b7b174231dc707d7b91e25bcda03cde77 | |
parent | 95b520110dc1ee6ee670817fdd6312a8565cf34c (diff) | |
download | busybox-8a915880e7c86534859353f40ee18fbbe8004c26.tar.gz |
Teach libc5 about realpath
-Erik
-rw-r--r-- | umount.c | 5 | ||||
-rw-r--r-- | util-linux/umount.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -30,6 +30,11 @@ #include <stdlib.h> #include "busybox.h" +/* Teach libc5 about realpath -- it includes it but the + * prototype is missing... */ +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) +extern char *realpath(const char *path, char *resolved_path); +#endif static const int MNT_FORCE = 1; static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ diff --git a/util-linux/umount.c b/util-linux/umount.c index 8565744f2..74638d21c 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -30,6 +30,11 @@ #include <stdlib.h> #include "busybox.h" +/* Teach libc5 about realpath -- it includes it but the + * prototype is missing... */ +#if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) +extern char *realpath(const char *path, char *resolved_path); +#endif static const int MNT_FORCE = 1; static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ |