]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mingw_support.h
am33xx: refactor am33xx mux support and add ti814x support
[karo-tx-uboot.git] / tools / mingw_support.h
index 27936746bda86ac2f43da3c81f8162a0e672f13d..48b8010f0b6beb0faffc5a5451d0ee3e565170d6 100644 (file)
 #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_ */