diff options
| author | Eli Zaretskii | 2020-02-24 18:16:51 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-02-24 18:16:51 +0200 |
| commit | 7dfe90a666ab6b90597e3ee61c141da088da340c (patch) | |
| tree | c89accc53840eaa8b92186a207616883eb8ce3ca /nt | |
| parent | 9d626dffc6ba62c0d7a1a5c712f576ed8684fd66 (diff) | |
| download | emacs-7dfe90a666ab6b90597e3ee61c141da088da340c.tar.gz emacs-7dfe90a666ab6b90597e3ee61c141da088da340c.zip | |
Adapt the MS-Windows build to 'nofollow' changes
* nt/gnulib-cfg.mk (OMIT_GNULIB_MODULE_fchmodat)
(OMIT_GNULIB_MODULE_lchmod): Set to true to omit building these
modules on MS-Windows.
* nt/mingw-cfg.site (ac_cv_func_fchmodat)
(gl_cv_func_fchmodat_works, ac_cv_func_lchmod): Disable tests on
MS-Windows.
* src/w32.c (chmod_worker, lchmod, fchmodat): New functions.
(sys_chmod): Move most of the code to chmod_worker.
* src/w32.h (fchmodat, lchmod): Add prototypes.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/gnulib-cfg.mk | 2 | ||||
| -rw-r--r-- | nt/mingw-cfg.site | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/nt/gnulib-cfg.mk b/nt/gnulib-cfg.mk index 08e83e028da..1d120a973d1 100644 --- a/nt/gnulib-cfg.mk +++ b/nt/gnulib-cfg.mk | |||
| @@ -63,3 +63,5 @@ OMIT_GNULIB_MODULE_sys_time = true | |||
| 63 | OMIT_GNULIB_MODULE_sys_types = true | 63 | OMIT_GNULIB_MODULE_sys_types = true |
| 64 | OMIT_GNULIB_MODULE_unistd = true | 64 | OMIT_GNULIB_MODULE_unistd = true |
| 65 | OMIT_GNULIB_MODULE_canonicalize-lgpl = true | 65 | OMIT_GNULIB_MODULE_canonicalize-lgpl = true |
| 66 | OMIT_GNULIB_MODULE_fchmodat = true | ||
| 67 | OMIT_GNULIB_MODULE_lchmod = true | ||
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index dfdca3926f9..5bd5b834634 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site | |||
| @@ -102,6 +102,9 @@ ac_cv_func_lstat=yes | |||
| 102 | gl_cv_func_lstat_dereferences_slashed_symlink=yes | 102 | gl_cv_func_lstat_dereferences_slashed_symlink=yes |
| 103 | ac_cv_func_fstatat=yes | 103 | ac_cv_func_fstatat=yes |
| 104 | gl_cv_func_fstatat_zero_flag=yes | 104 | gl_cv_func_fstatat_zero_flag=yes |
| 105 | ac_cv_func_fchmodat=yes | ||
| 106 | gl_cv_func_fchmodat_works="not-needed-so-yes" | ||
| 107 | ac_cv_func_lchmod=yes | ||
| 105 | # Aliased to _commit in ms-w32.h | 108 | # Aliased to _commit in ms-w32.h |
| 106 | ac_cv_func_fsync=yes | 109 | ac_cv_func_fsync=yes |
| 107 | ac_cv_func_fdatasync=yes | 110 | ac_cv_func_fdatasync=yes |