summaryrefslogtreecommitdiff
path: root/tools/mingw_support.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-18 16:59:45 +0000
committerWolfgang Denk <wd@denx.de>2012-07-20 08:53:34 +0200
commit4f7136e7c55e95aa3a5c6b99f9ef9f32c906612c (patch)
tree6a5983084837ec87b60fe20b8ada86fe89af8ad8 /tools/mingw_support.h
parent6705e036ce2a815ff23eef0e4ed123550474516d (diff)
downloadu-boot-imx-4f7136e7c55e95aa3a5c6b99f9ef9f32c906612c.zip
u-boot-imx-4f7136e7c55e95aa3a5c6b99f9ef9f32c906612c.tar.gz
u-boot-imx-4f7136e7c55e95aa3a5c6b99f9ef9f32c906612c.tar.bz2
tools: clean up mingw ifdefs
We have a header file specifically for mingw cruft, so keep it there to avoid crap spreading into the main tools. This lets our devs just worry about *nix systems. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools/mingw_support.h')
-rw-r--r--tools/mingw_support.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/mingw_support.h b/tools/mingw_support.h
index ee07290..48b8010 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))