X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Fubsha1.c;h=625e13f90c75c91afeba0eed29051a2ab920290e;hb=2bf22a54316f83942a1b6fbe5c805c90339229b4;hp=b37b2b72242ad561d568878f62c470ab6f5eea55;hpb=fd3635190bee477dd19b87da80136c00f11444c0;p=oweals%2Fu-boot.git diff --git a/tools/ubsha1.c b/tools/ubsha1.c index b37b2b7224..625e13f90c 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -21,34 +21,16 @@ * MA 02111-1307 USA */ +#include "os_support.h" #include #include #include #include #include #include -#include #include #include "sha1.h" -#ifndef __ASSEMBLY__ -#define __ASSEMBLY__ /* Dirty trick to get only #defines */ -#endif -#include -#undef __ASSEMBLY__ - -#ifndef O_BINARY /* should be define'd on __WIN32__ */ -#define O_BINARY 0 -#endif - -#ifndef MAP_FAILED -#define MAP_FAILED (-1) -#endif - -extern int errno; - -extern void sha1_csum (unsigned char *input, int ilen, unsigned char output[20]); - int main (int argc, char **argv) { unsigned char output[20];