[Linux-ha-dev] HBauth files - sha1.c, md5.c
Soffen, Matthew
msoffen at iso-ne.com
Wed Jan 21 10:24:54 MST 2004
Thanks !
Finally having my Solaris build machine is nice ( Had a bad external disk
power supply that I had to "fix" ) so I'm finally getting back into the
swing of things ( nightly builds/etc. ).
Matt
-----Original Message-----
From: Horms [mailto:horms at verge.net.au]
Sent: Wednesday, January 21, 2004 12:59 AM
To: High-Availability Linux Development List
Subject: Re: [Linux-ha-dev] HBauth files - sha1.c, md5.c
On Tue, Jan 20, 2004 at 04:15:26PM -0500, Soffen, Matthew wrote:
> Can someone verify for me that "stdint.h" is needed for building those
files
> on Linux, because it is not needed nor does it exist on Solaris.
>
> The code compiles fine without it.
Hi Matt,
it does seem to be needed on Linux. I have wrapped
the two uses of it, in md5.c and sha1.c in
#ifdef HAVE_STDINT_H.
--
Horms
Index: lib/plugins/HBauth/md5.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/plugins/HBauth/md5.c,v
retrieving revision 1.8
diff -u -r1.8 md5.c
--- lib/plugins/HBauth/md5.c 19 Dec 2003 17:28:01 -0000 1.8
+++ lib/plugins/HBauth/md5.c 21 Jan 2004 05:58:49 -0000
@@ -19,7 +19,9 @@
*/
#include <portability.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <stdio.h> /* for sprintf() */
#include <string.h> /* for memcpy() */
#include <sys/types.h> /* for stupid systems */
Index: lib/plugins/HBauth/sha1.c
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/plugins/HBauth/sha1.c,v
retrieving revision 1.8
diff -u -r1.8 sha1.c
--- lib/plugins/HBauth/sha1.c 19 Dec 2003 17:28:01 -0000 1.8
+++ lib/plugins/HBauth/sha1.c 21 Jan 2004 05:58:49 -0000
@@ -19,7 +19,9 @@
#define SHA1HANDSOFF 1
#include <portability.h>
+#ifdef HAVE_STDINT_H
#include <stdio.h>
+#endif
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
More information about the Linux-HA-Dev
mailing list