diff options
| author | Eli Zaretskii | 2017-01-03 17:46:40 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-03 17:46:40 +0200 |
| commit | 10444dcf77711bf3360f865fcb0d446a83e1bfb5 (patch) | |
| tree | c5e6586bbae9bb3fdbfd2a7727f9ec9fc0fe8f4a /src | |
| parent | 134e86b360cab0d0a5cb634b71a4b06ec26c5f1f (diff) | |
| download | emacs-10444dcf77711bf3360f865fcb0d446a83e1bfb5.tar.gz emacs-10444dcf77711bf3360f865fcb0d446a83e1bfb5.zip | |
Generate nt/gnulib.mk from lib/gnulib.mk
This was proposed by Paul Eggert <eggert@cs.ucla.edu>,
with the purpose of avoiding manual maintenance of
nt/gnulib.mk.
* nt/gnulib-modules-to-delete.cfg: New file.
* nt/Makefile.in (AM_V_GEN, am__v_GEN_, am__v_GEN_0)
(am__v_GEN_1): New variables.
(${srcdir}/gnulib.mk): Rules to generate gnulib.mk from
lib/gnulib.mk and list of modules in gnulib-modules-to-delete.cfg.
* make-dist (nt): Add gnulib-modules-to-delete.cfg to the list of
files to link.
* configure.ac (GNULIB_MK): Compute the value according to $opsys.
* autogen.sh: Create nt/gnulib.mk if it doesn't exist, before
running autoreconf.
* Makefile.in (gnulib_mk): New variable.
($(srcdir)/nt/gnulib.mk): Rule to produce it.
(AUTOMAKE_INPUTS): Use $(gnulib_mk) instead of a literal file
name.
* .gitignore: Add nt/gnulib.mk.
* src/w32.c (acl_errno_valid): Implement it here, as we no longer
build the acl-permissions module from Gnulib.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 17 |
1 files changed, 17 insertions, 0 deletions
| @@ -6407,6 +6407,23 @@ acl_set_file (const char *fname, acl_type_t type, acl_t acl) | |||
| 6407 | return retval; | 6407 | return retval; |
| 6408 | } | 6408 | } |
| 6409 | 6409 | ||
| 6410 | /* Return true if errno value ERRNUM indicates that ACLs are well | ||
| 6411 | supported on this system. ERRNUM should be an errno value obtained | ||
| 6412 | after an ACL-related system call fails. */ | ||
| 6413 | bool | ||
| 6414 | acl_errno_valid (int errnum) | ||
| 6415 | { | ||
| 6416 | switch (errnum) | ||
| 6417 | { | ||
| 6418 | case EBUSY: | ||
| 6419 | case EINVAL: | ||
| 6420 | case ENOTSUP: | ||
| 6421 | return false; | ||
| 6422 | default: | ||
| 6423 | return true; | ||
| 6424 | } | ||
| 6425 | } | ||
| 6426 | |||
| 6410 | 6427 | ||
| 6411 | /* MS-Windows version of careadlinkat (cf. ../lib/careadlinkat.c). We | 6428 | /* MS-Windows version of careadlinkat (cf. ../lib/careadlinkat.c). We |
| 6412 | have a fixed max size for file names, so we don't need the kind of | 6429 | have a fixed max size for file names, so we don't need the kind of |