Fossil SCM
Add a #include of <sys/types.h> to sha1.c. I am told this help it to compile on BSD systems.
Commit
17486c353f2e582a10e2f476303bd73be87a4414
Parent
8f423ad438265ed…
1 file changed
+1
+1
| --- src/sha1.c | ||
| +++ src/sha1.c | ||
| @@ -1,10 +1,11 @@ | ||
| 1 | 1 | /* |
| 2 | 2 | ** This implementation of SHA1 is adapted from the example implementation |
| 3 | 3 | ** contained in RFC-3174. |
| 4 | 4 | */ |
| 5 | 5 | #include <stdint.h> |
| 6 | +#include <sys/types.h> | |
| 6 | 7 | #include "config.h" |
| 7 | 8 | #include "sha1.h" |
| 8 | 9 | |
| 9 | 10 | /* |
| 10 | 11 | * If you do not have the ISO standard stdint.h header file, then you |
| 11 | 12 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -1,10 +1,11 @@ | |
| 1 | /* |
| 2 | ** This implementation of SHA1 is adapted from the example implementation |
| 3 | ** contained in RFC-3174. |
| 4 | */ |
| 5 | #include <stdint.h> |
| 6 | #include "config.h" |
| 7 | #include "sha1.h" |
| 8 | |
| 9 | /* |
| 10 | * If you do not have the ISO standard stdint.h header file, then you |
| 11 |
| --- src/sha1.c | |
| +++ src/sha1.c | |
| @@ -1,10 +1,11 @@ | |
| 1 | /* |
| 2 | ** This implementation of SHA1 is adapted from the example implementation |
| 3 | ** contained in RFC-3174. |
| 4 | */ |
| 5 | #include <stdint.h> |
| 6 | #include <sys/types.h> |
| 7 | #include "config.h" |
| 8 | #include "sha1.h" |
| 9 | |
| 10 | /* |
| 11 | * If you do not have the ISO standard stdint.h header file, then you |
| 12 |