From 4f41188a6e1eb0ce832bd74907642f30ada344d9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 28 Mar 2020 13:58:44 -0700 Subject: [PATCH] Stop using newly-deprecated dosname Gnulib module Code is supposed to use the filename module now. * admin/merge-gnulib (GNULIB_MODULES): Replace dosname with filename. * lib/dosname.h: Remove this forwarding stub. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * lib-src/emacsclient.c, src/fileio.c: Include filename.h instead of dosname.h. --- admin/merge-gnulib | 4 ++-- lib-src/emacsclient.c | 2 +- lib/dosname.h | 18 ------------------ lib/gnulib.mk.in | 11 +---------- m4/gnulib-comp.m4 | 2 -- src/fileio.c | 2 +- 6 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 lib/dosname.h diff --git a/admin/merge-gnulib b/admin/merge-gnulib index 768e5051f0b..99469e47aa7 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib @@ -31,10 +31,10 @@ GNULIB_MODULES=' careadlinkat close-stream copy-file-range count-leading-zeros count-one-bits count-trailing-zeros crypto/md5-buffer crypto/sha1-buffer crypto/sha256-buffer crypto/sha512-buffer - d-type diffseq dosname double-slash-root dtoastr dtotimespec dup2 + d-type diffseq double-slash-root dtoastr dtotimespec dup2 environ execinfo explicit_bzero faccessat fchmodat fcntl fcntl-h fdopendir - filemode filevercmp flexmember fpieee fstatat fsusage fsync futimens + filemode filename filevercmp flexmember fpieee fstatat fsusage fsync futimens getloadavg getopt-gnu gettime gettimeofday gitlog-to-changelog ieee754-h ignore-value intprops largefile lstat manywarnings memmem-simple mempcpy memrchr minmax mkostemp mktime nstrftime diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 204064f1871..380be95222b 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -80,7 +80,7 @@ char *w32_getenv (const char *); #include #include -#include +#include #include #include #include diff --git a/lib/dosname.h b/lib/dosname.h deleted file mode 100644 index 490e0c5a7dd..00000000000 --- a/lib/dosname.h +++ /dev/null @@ -1,18 +0,0 @@ -/* File names on MS-DOS/Windows systems. - - Copyright (C) 2000-2001, 2004-2006, 2009-2020 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include "filename.h" diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 256bda7752e..0c7c2fb2b66 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in @@ -86,7 +86,6 @@ # crypto/sha512-buffer \ # d-type \ # diffseq \ -# dosname \ # double-slash-root \ # dtoastr \ # dtotimespec \ @@ -100,6 +99,7 @@ # fcntl-h \ # fdopendir \ # filemode \ +# filename \ # filevercmp \ # flexmember \ # fpieee \ @@ -1452,15 +1452,6 @@ EXTRA_libgnu_a_SOURCES += dirfd.c endif ## end gnulib module dirfd -## begin gnulib module dosname -ifeq (,$(OMIT_GNULIB_MODULE_dosname)) - - -EXTRA_DIST += dosname.h - -endif -## end gnulib module dosname - ## begin gnulib module dtoastr ifeq (,$(OMIT_GNULIB_MODULE_dtoastr)) diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index f92222dd771..d5faa9a1950 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 @@ -69,7 +69,6 @@ AC_DEFUN([gl_EARLY], # Code from module diffseq: # Code from module dirent: # Code from module dirfd: - # Code from module dosname: # Code from module double-slash-root: # Code from module dtoastr: # Code from module dtotimespec: @@ -962,7 +961,6 @@ AC_DEFUN([gl_FILE_LIST], [ lib/diffseq.h lib/dirent.in.h lib/dirfd.c - lib/dosname.h lib/dtoastr.c lib/dtotimespec.c lib/dup2.c diff --git a/src/fileio.c b/src/fileio.c index ffe79559a3f..978a373d39b 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -96,7 +96,7 @@ along with GNU Emacs. If not, see . */ #include #include #include -#include +#include #include #include #include -- 2.39.2