summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-02-21 12:16:12 +0000
committerJim Meyering <jim@meyering.net>2003-02-21 12:16:12 +0000
commit5e91595f93a09844b6ad1179b1dfd9f559c72bf8 (patch)
tree836e136e40f4ab7a4d07b36b9e1f77917f3d8e99 /lib
parent0d0a14cd56e328227a3214e9a41cd73ed159ad68 (diff)
downloadcoreutils-5e91595f93a09844b6ad1179b1dfd9f559c72bf8.tar.xz
Merge in some changes from GNU libc.
(md5_uintptr): Define.
Diffstat (limited to 'lib')
-rw-r--r--lib/md5.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/md5.h b/lib/md5.h
index 3b7dea169..0d22a70a2 100644
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -35,8 +35,9 @@
is usually not possible. */
#ifdef _LIBC
-# include <sys/types.h>
-typedef u_int32_t md5_uint32;
+# include <stdint.h>
+typedef uint32_t md5_uint32;
+typedef uintptr_t md5_uintptr;
#else
# if defined __STDC__ && __STDC__
# define UINT_MAX_32_BITS 4294967295U
@@ -68,6 +69,9 @@ typedef u_int32_t md5_uint32;
# endif
# endif
# endif
+/* We have to make a guess about the integer type equivalent in size
+ to pointers which should always be correct. */
+typedef unsigned long int md5_uintptr;
#endif
#undef __P