X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fmingw_support.h;h=48b8010f0b6beb0faffc5a5451d0ee3e565170d6;hb=6f6430d72b007128dd159e5200edb9f576a10bf9;hp=9e45e64911b6ff9d643f5ab5da285a610a39c2fd;hpb=23b5b1d3e1e33e9650cc7a4e09901272a3811c64;p=u-boot diff --git a/tools/mingw_support.h b/tools/mingw_support.h index 9e45e64911..48b8010f0b 100644 --- a/tools/mingw_support.h +++ b/tools/mingw_support.h @@ -34,6 +34,14 @@ #define MAP_SHARED 0x01 /* Share changes */ #define MAP_PRIVATE 0x02 /* Changes are private */ +/* File perms */ +#ifndef S_IRGRP +# define S_IRGRP 0 +#endif +#ifndef S_IWGRP +# define S_IWGRP 0 +#endif + /* Windows 64-bit access macros */ #define LODWORD(x) ((DWORD)((DWORDLONG)(x))) #define HIDWORD(x) ((DWORD)(((DWORDLONG)(x) >> 32) & 0xffffffff)) @@ -44,5 +52,7 @@ typedef ULONG ulong; int fsync(int fd); void *mmap(void *, size_t, int, int, int, int); int munmap(void *, size_t); +char *strtok_r(char *s, const char *delim, char **save_ptr); +#include "getline.h" #endif /* __MINGW_SUPPORT_H_ */