summaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/md5sum.c8
-rw-r--r--coreutils/uudecode.c1
-rw-r--r--coreutils/uuencode.c1
3 files changed, 10 insertions, 0 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index ffa9e6b..f4a8b99 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -24,6 +24,14 @@
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
+#include <getopt.h>
+
+/* 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 752497c..ac33762 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -55,6 +55,7 @@
#include <stdio.h>
#include <errno.h>
+#include <getopt.h>
#include <pwd.h>
/*struct passwd *getpwnam();*/
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 97801aa..e4fc1a0 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -56,6 +56,7 @@
#include <stdio.h>
#include <errno.h>
+#include <getopt.h>
#include <pwd.h>
#define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)