diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/mingw.h b/include/mingw.h index 763606e51..fe84da7ad 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -10,12 +10,13 @@ typedef int pid_t; | |||
10 | #define S_IFLNK 0120000 /* Symbolic link */ | 10 | #define S_IFLNK 0120000 /* Symbolic link */ |
11 | #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK) | 11 | #define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK) |
12 | #define S_ISSOCK(x) 0 | 12 | #define S_ISSOCK(x) 0 |
13 | #define S_IRGRP 0 | 13 | |
14 | #define S_IWGRP 0 | 14 | #define S_IRGRP (S_IRUSR >> 3) |
15 | #define S_IXGRP 0 | 15 | #define S_IWGRP (S_IWUSR >> 3) |
16 | #define S_ISGID 0 | 16 | #define S_IXGRP (S_IXUSR >> 3) |
17 | #define S_IROTH 0 | 17 | #define S_IROTH (S_IRGRP >> 3) |
18 | #define S_IXOTH 0 | 18 | #define S_IWOTH (S_IWGRP >> 3) |
19 | #define S_IXOTH (S_IXGRP >> 3) | ||
19 | 20 | ||
20 | #define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */ | 21 | #define WIFEXITED(x) ((unsigned)(x) < 259) /* STILL_ACTIVE */ |
21 | #define WEXITSTATUS(x) ((x) & 0xff) | 22 | #define WEXITSTATUS(x) ((x) & 0xff) |
@@ -112,7 +113,7 @@ static inline int mingw_unlink(const char *pathname) | |||
112 | static inline int waitpid(pid_t pid, unsigned *status, unsigned options) | 113 | static inline int waitpid(pid_t pid, unsigned *status, unsigned options) |
113 | { | 114 | { |
114 | if (options == 0) | 115 | if (options == 0) |
115 | return _cwait(status, pid, 0); | 116 | return _cwait((int*)status, pid, 0); |
116 | errno = EINVAL; | 117 | errno = EINVAL; |
117 | return -1; | 118 | return -1; |
118 | } | 119 | } |
@@ -192,7 +193,7 @@ int mingw_utime(const char *file_name, const struct utimbuf *times); | |||
192 | #define utime mingw_utime | 193 | #define utime mingw_utime |
193 | 194 | ||
194 | pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env); | 195 | pid_t mingw_spawnvpe(const char *cmd, const char **argv, char **env); |
195 | void mingw_execvp(const char *cmd, char *const *argv); | 196 | int mingw_execvp(const char *cmd, char *const *argv); |
196 | #define execvp mingw_execvp | 197 | #define execvp mingw_execvp |
197 | 198 | ||
198 | static inline unsigned int git_ntohl(unsigned int x) | 199 | static inline unsigned int git_ntohl(unsigned int x) |