aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2019-06-25 09:18:17 -0700
committerPaul Eggert2019-06-25 09:22:52 -0700
commit848ff94b451f00e13452891f1a9774de542ce8bb (patch)
tree75321339d97b6a7fc764e272ce9d9ada66a54bda /lib
parent55ccd1b4854153497a538c85b0063d6ff02ded5c (diff)
downloademacs-848ff94b451f00e13452891f1a9774de542ce8bb.tar.gz
emacs-848ff94b451f00e13452891f1a9774de542ce8bb.zip
Update from Gnulib
This incorporates: 2019-06-24 unistd: stddef.h and sys/types.h namespace cleanup * lib/gnulib.mk.in: Regenerate. * lib/unistd.in.h: Copy from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/gnulib.mk.in2
-rw-r--r--lib/unistd.in.h17
2 files changed, 9 insertions, 10 deletions
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index d0bef0bd5de..b9a32d9dbc1 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -1073,7 +1073,9 @@ gl_GNULIB_ENABLED_dirfd = @gl_GNULIB_ENABLED_dirfd@
1073gl_GNULIB_ENABLED_euidaccess = @gl_GNULIB_ENABLED_euidaccess@ 1073gl_GNULIB_ENABLED_euidaccess = @gl_GNULIB_ENABLED_euidaccess@
1074gl_GNULIB_ENABLED_getdtablesize = @gl_GNULIB_ENABLED_getdtablesize@ 1074gl_GNULIB_ENABLED_getdtablesize = @gl_GNULIB_ENABLED_getdtablesize@
1075gl_GNULIB_ENABLED_getgroups = @gl_GNULIB_ENABLED_getgroups@ 1075gl_GNULIB_ENABLED_getgroups = @gl_GNULIB_ENABLED_getgroups@
1076gl_GNULIB_ENABLED_malloca = @gl_GNULIB_ENABLED_malloca@
1076gl_GNULIB_ENABLED_open = @gl_GNULIB_ENABLED_open@ 1077gl_GNULIB_ENABLED_open = @gl_GNULIB_ENABLED_open@
1078gl_GNULIB_ENABLED_pathmax = @gl_GNULIB_ENABLED_pathmax@
1077gl_GNULIB_ENABLED_strtoll = @gl_GNULIB_ENABLED_strtoll@ 1079gl_GNULIB_ENABLED_strtoll = @gl_GNULIB_ENABLED_strtoll@
1078gl_LIBOBJS = @gl_LIBOBJS@ 1080gl_LIBOBJS = @gl_LIBOBJS@
1079gl_LTLIBOBJS = @gl_LTLIBOBJS@ 1081gl_LTLIBOBJS = @gl_LTLIBOBJS@
diff --git a/lib/unistd.in.h b/lib/unistd.in.h
index 94a8f383c99..59ee39ecea5 100644
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -52,7 +52,10 @@
52#define _@GUARD_PREFIX@_UNISTD_H 52#define _@GUARD_PREFIX@_UNISTD_H
53 53
54/* NetBSD 5.0 mis-defines NULL. Also get size_t. */ 54/* NetBSD 5.0 mis-defines NULL. Also get size_t. */
55#include <stddef.h> 55/* But avoid namespace pollution on glibc systems. */
56#ifndef __GLIBC__
57# include <stddef.h>
58#endif
56 59
57/* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>. */ 60/* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>. */
58/* MSVC declares 'unlink' in <stdio.h>, not in <unistd.h>. We must include 61/* MSVC declares 'unlink' in <stdio.h>, not in <unistd.h>. We must include
@@ -124,15 +127,9 @@
124 127
125/* MSVC defines off_t in <sys/types.h>. 128/* MSVC defines off_t in <sys/types.h>.
126 May also define off_t to a 64-bit type on native Windows. */ 129 May also define off_t to a 64-bit type on native Windows. */
127#if !@HAVE_UNISTD_H@ || @WINDOWS_64_BIT_OFF_T@ 130/* But avoid namespace pollution on glibc systems. */
128/* Get off_t. */ 131#ifndef __GLIBC__
129# include <sys/types.h> 132/* Get off_t, ssize_t. */
130#endif
131
132#if (@GNULIB_READ@ || @GNULIB_WRITE@ \
133 || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \
134 || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK)
135/* Get ssize_t. */
136# include <sys/types.h> 133# include <sys/types.h>
137#endif 134#endif
138 135