{"thread":{"id":"22046","subject":"[PATCH 2/2] MinGW: Add missing file mode bit defines","startedAt":"2009-12-29T01:19:33Z","lastAt":"2009-12-30T00:51:01Z","messageCount":3,"participants":["Sebastian Schuberth","Johannes Sixt"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"130433","messageId":"hhblfa$di8$2@ger.gmane.org","threadId":"22046","inReplyTo":null,"subject":"[PATCH 2/2] MinGW: Add missing file mode bit defines","fromName":"Sebastian Schuberth","fromEmail":"sschuberth@gmail.com","sentAt":"2009-12-29T01:19:33Z","receivedAt":"2009-12-29T01:19:33Z","isPatch":true,"sender":{"key":"sschuberth@gmail.com","avatar":"https://avatars.githubusercontent.com/u/349154?v=4"},"body":"MinGW: Add missing file mode bit defines\n\nSigned-off-by: Sebastian Schuberth <sschuberth@gmail.com>\n---\n compat/mingw.h |   14 +++++++++++++-\n 1 files changed, 13 insertions(+), 1 deletions(-)\n\ndiff --git a/compat/mingw.h b/compat/mingw.h\nindex af2f810..885be51 100644\n--- a/compat/mingw.h\n+++ b/compat/mingw.h\n@@ -12,12 +12,24 @@ typedef int uid_t;\n #define S_IFLNK    0120000 /* Symbolic link */\n #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)\n #define S_ISSOCK(x) 0\n+\n+#ifndef _STAT_H_\n+#define S_IRUSR 0\n+#define S_IWUSR 0\n+#define S_IXUSR 0\n+#define S_IRWXU (S_IRUSR | S_IWUSR | S_IXUSR)\n+#endif\n #define S_IRGRP 0\n #define S_IWGRP 0\n #define S_IXGRP 0\n-#define S_ISGID 0\n+#define S_IRWXG (S_IRGRP | S_IWGRP | S_IXGRP)\n #define S_IROTH 0\n+#define S_IWOTH 0\n #define S_IXOTH 0\n+#define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)\n+#define S_ISUID 0\n+#define S_ISGID 0\n+#define S_ISVTX 0\n \n #define WIFEXITED(x) 1\n #define WIFSIGNALED(x) 0\n-- \n1.6.5.rc2.13.g1be2\n"},{"id":"130480","messageId":"4B3A702C.5040408@kdbg.org","threadId":"22046","inReplyTo":"hhblfa$di8$2@ger.gmane.org","subject":"Re: [PATCH 2/2] MinGW: Add missing file mode bit defines","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2009-12-29T21:10:04Z","receivedAt":"2009-12-29T21:10:04Z","isPatch":true,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Sebastian Schuberth schrieb:\n> MinGW: Add missing file mode bit defines\n\nWhy this? What's the problem with the status quo?\n\n-- Hannes\n"},{"id":"130502","messageId":"bdca99240912291651j6d67040et5151096416ab4bd6@mail.gmail.com","threadId":"22046","inReplyTo":"4B3A702C.5040408@kdbg.org","subject":"Re: [PATCH 2/2] MinGW: Add missing file mode bit defines","fromName":"Sebastian Schuberth","fromEmail":"sschuberth@gmail.com","sentAt":"2009-12-30T00:51:01Z","receivedAt":"2009-12-30T00:51:01Z","isPatch":true,"sender":{"key":"sschuberth@gmail.com","avatar":"https://avatars.githubusercontent.com/u/349154?v=4"},"body":">> MinGW: Add missing file mode bit defines\n>\n> Why this? What's the problem with the status quo?\n\nSame here as for the \"Use pid_t more consequently\" patch, hd2u\nrequired one of the missing defines to compile for msysGit.\n\n-- \nSebastian Schuberth\n"}]}