X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fubsha1.c;h=9774eea32e59ff94c21336e825dab88bdbe19a60;hb=7d259a16aa2a1ec63b9ee5b0c95c24435accaee3;hp=b37b2b72242ad561d568878f62c470ab6f5eea55;hpb=53629f439cc9daba166812749d2cf3102aca7aac;p=u-boot diff --git a/tools/ubsha1.c b/tools/ubsha1.c index b37b2b7224..9774eea32e 100644 --- a/tools/ubsha1.c +++ b/tools/ubsha1.c @@ -21,13 +21,13 @@ * MA 02111-1307 USA */ +#include "os_support.h" #include #include #include #include #include #include -#include #include #include "sha1.h" @@ -37,16 +37,6 @@ #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)