aboutsummaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-09 06:59:58 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-09 06:59:58 +0000
commit999bf72f49a501e47448010c4ddb06dc03ed1612 (patch)
tree75d6c4187384bc385d59838834bac80f53a077cd /md5sum.c
parente9b527ae48cb9609ea0668974de32da523ebd231 (diff)
downloadbusybox-999bf72f49a501e47448010c4ddb06dc03ed1612.tar.gz
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
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/md5sum.c b/md5sum.c
index ffa9e6bce..f4a8b99d0 100644
--- a/md5sum.c
+++ b/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