Fossil

Check-in [17486c353f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a #include of <sys/types.h> to sha1.c. I am told this help it to compile on BSD systems.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 17486c353f2e582a10e2f476303bd73be87a4414
User & Date: drh 2007-10-23 16:30:21.000
Context
2007-10-23
16:35
Get rid of the (silly?) int_least16_t type in sha1.c and just use good old "int" instead. Makes things easier to compile on older systems. check-in: 8fb641e071 user: drh tags: trunk
16:30
Add a #include of <sys/types.h> to sha1.c. I am told this help it to compile on BSD systems. check-in: 17486c353f user: drh tags: trunk
2007-10-21
11:11
Fix a bug in wiki rendering that caused an extra paragraph end tag following a hyperlink. check-in: 8f423ad438 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sha1.c.
1
2
3
4
5

6
7
8
9
10
11
12
/*
** This implementation of SHA1 is adapted from the example implementation
** contained in RFC-3174.
*/
#include <stdint.h>

#include "config.h"
#include "sha1.h"

/*
 * If you do not have the ISO standard stdint.h header file, then you
 * must typdef the following:
 *    name              meaning





>







1
2
3
4
5
6
7
8
9
10
11
12
13
/*
** This implementation of SHA1 is adapted from the example implementation
** contained in RFC-3174.
*/
#include <stdint.h>
#include <sys/types.h>
#include "config.h"
#include "sha1.h"

/*
 * If you do not have the ISO standard stdint.h header file, then you
 * must typdef the following:
 *    name              meaning