From 999bf72f49a501e47448010c4ddb06dc03ed1612 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 9 Jul 2000 06:59:58 +0000 Subject: More portability updates. Now compiles cleanly vs glibc, libc5, and uclibc (except for mkfs_minix and fsck_minix -- and it doesn't yet link vs uclibc due to missing stuff in the library). -Erik --- coreutils/md5sum.c | 8 ++++++++ coreutils/uudecode.c | 1 + coreutils/uuencode.c | 1 + 3 files changed, 10 insertions(+) (limited to 'coreutils') diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index ffa9e6bce..f4a8b99d0 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c @@ -24,6 +24,14 @@ #include #include #include +#include + +/* It turns out that libc5 doesn't have this in its headers + * even though it is actually in the lib. Force it to work */ +#if ! defined __GLIBC__ && ! defined __UCLIBC__ +#define getline __getline +extern _IO_ssize_t getline __P ((char **, size_t *, FILE *)); +#endif //---------------------------------------------------------------------------- //--------md5.c diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 752497cb0..ac33762b0 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -55,6 +55,7 @@ #include #include +#include #include /*struct passwd *getpwnam();*/ diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 97801aa09..e4fc1a0bc 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -56,6 +56,7 @@ #include #include +#include #include #define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) -- cgit v1.2.3