diff mbox

[libiberty's,include] : Fixes PR 39064 and partial PR 54620

Message ID CAEwic4a2oPmfOasSmc1pOdWo337CO9upDcBWBnGs59Wa_ET7rQ@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Jan. 30, 2013, 3:03 p.m. UTC
Hmm, I see ...  so we need an new condition.

Is it ok to apply?

Thanks,
Kai

Comments

Ian Lance Taylor Jan. 30, 2013, 3:44 p.m. UTC | #1
On Wed, Jan 30, 2013 at 7:03 AM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hmm, I see ...  so we need an new condition.
>
> Is it ok to apply?

This version is OK if it bootstraps.

Thanks.

Ian
diff mbox

Patch

Index: md5.h
===================================================================
--- md5.h	(Revision 195572)
+++ md5.h	(Arbeitskopie)
@@ -40,6 +40,11 @@ 
 # include <sys/types.h>
 typedef u_int32_t md5_uint32;
 typedef uintptr_t md5_uintptr;
+#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H)
+#include <stdint.h>
+#include <sys/types.h>
+typedef uint32_t md5_uint32;
+typedef uintptr_t md5_uintptr;
 #else
 #  define INT_MAX_32_BITS 2147483647

Index: sha1.h
===================================================================
--- sha1.h	(Revision 195572)
+++ sha1.h	(Arbeitskopie)
@@ -39,6 +39,11 @@ 
 # include <sys/types.h>
 typedef u_int32_t sha1_uint32;
 typedef uintptr_t sha1_uintptr;
+#elif defined (HAVE_SYS_TYPES_H) && defined (HAVE_STDINT_H)
+#include <stdint.h>
+#include <sys/types.h>
+typedef uint32_t sha1_uint32;
+typedef uintptr_t sha1_uintptr;
 #else
 #  define INT_MAX_32_BITS 2147483647