diff options
-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 @@ | |||
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include "busybox.h" | 31 | #include "busybox.h" |
32 | 32 | ||
33 | /* Teach libc5 about realpath -- it includes it but the | ||
34 | * prototype is missing... */ | ||
35 | #if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) | ||
36 | extern char *realpath(const char *path, char *resolved_path); | ||
37 | #endif | ||
33 | 38 | ||
34 | static const int MNT_FORCE = 1; | 39 | static const int MNT_FORCE = 1; |
35 | static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ | 40 | 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 @@ | |||
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
31 | #include "busybox.h" | 31 | #include "busybox.h" |
32 | 32 | ||
33 | /* Teach libc5 about realpath -- it includes it but the | ||
34 | * prototype is missing... */ | ||
35 | #if (__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1) | ||
36 | extern char *realpath(const char *path, char *resolved_path); | ||
37 | #endif | ||
33 | 38 | ||
34 | static const int MNT_FORCE = 1; | 39 | static const int MNT_FORCE = 1; |
35 | static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ | 40 | static const int MS_MGC_VAL = 0xc0ed0000; /* Magic number indicatng "new" flags */ |