mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 03:39:38 +00:00
Sync with gnulib
This incorporates: 2016-03-15 time_rz: port to clang -Wunused-const-variable 2016-03-15 select: port more to Intel 2016.1.150 compiler * lib/sys_select.in.h, lib/time_rz.c: Copy from gnulib.
This commit is contained in:
parent
38b276d162
commit
ba33b7c412
2 changed files with 8 additions and 7 deletions
|
@ -289,12 +289,15 @@ _GL_WARN_ON_USE (pselect, "pselect is not portable - "
|
||||||
# define select rpl_select
|
# define select rpl_select
|
||||||
# endif
|
# endif
|
||||||
_GL_FUNCDECL_RPL (select, int,
|
_GL_FUNCDECL_RPL (select, int,
|
||||||
(int, fd_set *, fd_set *, fd_set *, struct timeval *));
|
(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
|
||||||
|
struct timeval *restrict));
|
||||||
_GL_CXXALIAS_RPL (select, int,
|
_GL_CXXALIAS_RPL (select, int,
|
||||||
(int, fd_set *, fd_set *, fd_set *, struct timeval *));
|
(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
|
||||||
|
struct timeval *restrict));
|
||||||
# else
|
# else
|
||||||
_GL_CXXALIAS_SYS (select, int,
|
_GL_CXXALIAS_SYS (select, int,
|
||||||
(int, fd_set *, fd_set *, fd_set *, struct timeval *));
|
(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
|
||||||
|
struct timeval *restrict));
|
||||||
# endif
|
# endif
|
||||||
_GL_CXXALIASWARN (select);
|
_GL_CXXALIASWARN (select);
|
||||||
#elif @HAVE_WINSOCK2_H@
|
#elif @HAVE_WINSOCK2_H@
|
||||||
|
|
|
@ -47,8 +47,6 @@ enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 };
|
||||||
used. */
|
used. */
|
||||||
enum { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) };
|
enum { ABBR_SIZE_MIN = DEFAULT_MXFAST - offsetof (struct tm_zone, abbrs) };
|
||||||
|
|
||||||
static char const TZ[] = "TZ";
|
|
||||||
|
|
||||||
/* Magic cookie timezone_t value, for local time. It differs from
|
/* Magic cookie timezone_t value, for local time. It differs from
|
||||||
NULL and from all other timezone_t values. Only the address
|
NULL and from all other timezone_t values. Only the address
|
||||||
matters; the pointer is never dereferenced. */
|
matters; the pointer is never dereferenced. */
|
||||||
|
@ -205,7 +203,7 @@ tzfree (timezone_t tz)
|
||||||
static char *
|
static char *
|
||||||
getenv_TZ (void)
|
getenv_TZ (void)
|
||||||
{
|
{
|
||||||
return getenv (TZ);
|
return getenv ("TZ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -213,7 +211,7 @@ getenv_TZ (void)
|
||||||
static int
|
static int
|
||||||
setenv_TZ (char const *tz)
|
setenv_TZ (char const *tz)
|
||||||
{
|
{
|
||||||
return tz ? setenv (TZ, tz, 1) : unsetenv (TZ);
|
return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue