diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-04-03 02:09:54 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-03 02:09:54 +0400 |
commit | 76d1ab30a3ad1c3bf406efb60c55b00a566f9050 (patch) | |
tree | 9b304604709131edb97f316277c9f80dba4faa58 /compat/cygwin.h | |
parent | 37ba4c61d04d0782bd34971be5cc4eec10f59d36 (diff) | |
parent | 0117c2f043183fb99e9b046b0df7d64c1b296624 (diff) |
Merge branch 'tb/cygwin-shared-repository'
Cygwin port has a faster-but-lying lstat(2) emulation whose
incorrectness does not matter in practice except for a few
codepaths, and setting permission bits to directories is a codepath
that needs to use a more correct one.
* tb/cygwin-shared-repository:
Make core.sharedRepository work under cygwin 1.7
Diffstat (limited to 'compat/cygwin.h')
-rw-r--r-- | compat/cygwin.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/cygwin.h b/compat/cygwin.h index a3229f5b4f..c04965a2e0 100644 --- a/compat/cygwin.h +++ b/compat/cygwin.h @@ -4,6 +4,11 @@ typedef int (*stat_fn_t)(const char*, struct stat*); extern stat_fn_t cygwin_stat_fn; extern stat_fn_t cygwin_lstat_fn; +int cygwin_get_st_mode_bits(const char *path, int *mode); +#define get_st_mode_bits(p,m) cygwin_get_st_mode_bits((p),(m)) +#ifndef CYGWIN_C +/* cygwin.c needs the original lstat() */ #define stat(path, buf) (*cygwin_stat_fn)(path, buf) #define lstat(path, buf) (*cygwin_lstat_fn)(path, buf) +#endif |