X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=tools%2Fmingw_support.h;h=48b8010f0b6beb0faffc5a5451d0ee3e565170d6;hb=c8142633e169665b246352918df5b76fd243bb71;hp=27936746bda86ac2f43da3c81f8162a0e672f13d;hpb=5a1b1f36dab86668aaeead61198779d2bca35d2e;p=oweals%2Fu-boot.git diff --git a/tools/mingw_support.h b/tools/mingw_support.h index 27936746bd..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)) @@ -45,6 +53,6 @@ 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); -int getline(char **lineptr, size_t *n, FILE *stream); +#include "getline.h" #endif /* __MINGW_SUPPORT_H_ */