]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - tools/mingw_support.h
tools/proftool: remove REG_NOERROR
[karo-tx-uboot.git] / tools / mingw_support.h
index 1fb6c93824cb56c355d868c49788caef33b925e1..48b8010f0b6beb0faffc5a5451d0ee3e565170d6 100644 (file)
 #define MAP_SHARED     0x01            /* Share changes */
 #define MAP_PRIVATE    0x02            /* Changes are private */
 
-/* Return value of `mmap' in case of an error */
-#define MAP_FAILED     ((void *) -1)
+/* 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)))
@@ -47,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_ */