summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:55:24 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:55:24 +0000
commit606627a9f6ccd3eff727931719b9ea23f72f10e1 (patch)
tree86ac6f08d900ac157011e86c4254df78d650936a
parentb43985e28af194a24d7b5b9715f7fac71daf45df (diff)
downloadcoreutils-606627a9f6ccd3eff727931719b9ea23f72f10e1.tar.xz
Include "sha.h" first.
Include <stdlib.h>, <string.h> unconditionally.
-rw-r--r--lib/sha.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/sha.c b/lib/sha.c
index 150bf0e42..b645bf402 100644
--- a/lib/sha.c
+++ b/lib/sha.c
@@ -11,19 +11,13 @@
# include <config.h>
#endif
+#include "sha.h"
+
#include <sys/types.h>
-#if STDC_HEADERS || defined _LIBC
-# include <stdlib.h>
-# include <string.h>
-#else
-# ifndef HAVE_MEMCPY
-# define memcpy(d, s, n) bcopy ((s), (d), (n))
-# endif
-#endif
+#include <stdlib.h>
+#include <string.h>
-#include "md5.h"
-#include "sha.h"
#include "unlocked-io.h"
/*