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

login
register
mail settings
Submitter Kai Tietz
Date Jan. 30, 2013, 3:03 p.m.
Message ID <CAEwic4a2oPmfOasSmc1pOdWo337CO9upDcBWBnGs59Wa_ET7rQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/216936/
State New
Headers show

Comments

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

Is it ok to apply?

Thanks,
Kai
Ian Taylor - Jan. 30, 2013, 3:44 p.m.
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

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