aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mktime.c
diff options
context:
space:
mode:
authorPaul Eggert2016-01-24 14:50:47 -0800
committerPaul Eggert2016-01-24 14:51:22 -0800
commit1698036a43d9e2c55ead6216ea7156df8615da47 (patch)
tree60bb61c907536ebc38c6b301fd754028b8a9b542 /lib/mktime.c
parentfbce4757a874cc43806eb41b8637538b101c3c69 (diff)
downloademacs-1698036a43d9e2c55ead6216ea7156df8615da47.tar.gz
emacs-1698036a43d9e2c55ead6216ea7156df8615da47.zip
Merge from gnulib
This incorporates: 2016-01-24 openat_proc_name: fix last '/' overwritten on OS/2 kLIBC 2016-01-24 closedir, dirfd, opendir: port to OpenSolaris 5.10 2016-01-15 detect utimes() correctly on OS/2 kLIBC 2016-01-15 openat_proc_name: port to OS/2 kLIBC 2016-01-14 stdint: check _INTPTR_T_DECLARED for intptr_t etc. 2016-01-14 opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC 2016-01-14 dup, dup2, fcntl: support a directory fd on OS/2 kLIBC 2016-01-14 binary-io: don't put fd in binary mode if a console on EMX 2016-01-14 sig2str: list all signals on FreeBSD >= 7 2016-01-13 acl-permissions: port to USE_ACL==0 platforms 2016-01-12 mktime: rename macro to avoid glibc clash 2016-01-12 Port "$@" to OpenIndiana ksh93 2016-01-12 Port Universal Time settings to strict POSIX * build-aux/gitlog-to-changelog, build-aux/update-copyright: * doc/misc/texinfo.tex, lib/acl-internal.c, lib/acl-internal.h: * lib/binary-io.h, lib/dirent.in.h, lib/dirfd.c, lib/dup2.c: * lib/fcntl.c, lib/fdopendir.c, lib/mktime.c, lib/openat-proc.c: * lib/sig2str.h, lib/stdint.in.h, m4/dirfd.m4, m4/dup2.m4: * m4/fcntl.m4, m4/utimes.m4: Copy from gnulib. * m4/gnulib-comp.m4: Regenerate.
Diffstat (limited to 'lib/mktime.c')
-rw-r--r--lib/mktime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mktime.c b/lib/mktime.c
index adbf8d482ae..c9738d0daf9 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -19,7 +19,7 @@
19 19
20/* Define this to have a standalone program to test this implementation of 20/* Define this to have a standalone program to test this implementation of
21 mktime. */ 21 mktime. */
22/* #define DEBUG 1 */ 22/* #define DEBUG_MKTIME 1 */
23 23
24#ifndef _LIBC 24#ifndef _LIBC
25# include <config.h> 25# include <config.h>
@@ -38,13 +38,13 @@
38 38
39#include <string.h> /* For the real memcpy prototype. */ 39#include <string.h> /* For the real memcpy prototype. */
40 40
41#if defined DEBUG && DEBUG 41#if defined DEBUG_MKTIME && DEBUG_MKTIME
42# include <stdio.h> 42# include <stdio.h>
43# include <stdlib.h> 43# include <stdlib.h>
44/* Make it work even if the system's libc has its own mktime routine. */ 44/* Make it work even if the system's libc has its own mktime routine. */
45# undef mktime 45# undef mktime
46# define mktime my_mktime 46# define mktime my_mktime
47#endif /* DEBUG */ 47#endif /* DEBUG_MKTIME */
48 48
49/* Some of the code in this file assumes that signed integer overflow 49/* Some of the code in this file assumes that signed integer overflow
50 silently wraps around. This assumption can't easily be programmed 50 silently wraps around. This assumption can't easily be programmed
@@ -600,7 +600,7 @@ libc_hidden_def (mktime)
600libc_hidden_weak (timelocal) 600libc_hidden_weak (timelocal)
601#endif 601#endif
602 602
603#if defined DEBUG && DEBUG 603#if defined DEBUG_MKTIME && DEBUG_MKTIME
604 604
605static int 605static int
606not_equal_tm (const struct tm *a, const struct tm *b) 606not_equal_tm (const struct tm *a, const struct tm *b)
@@ -732,10 +732,10 @@ main (int argc, char **argv)
732 return status; 732 return status;
733} 733}
734 734
735#endif /* DEBUG */ 735#endif /* DEBUG_MKTIME */
736 736
737/* 737/*
738Local Variables: 738Local Variables:
739compile-command: "gcc -DDEBUG -I. -Wall -W -O2 -g mktime.c -o mktime" 739compile-command: "gcc -DDEBUG_MKTIME -I. -Wall -W -O2 -g mktime.c -o mktime"
740End: 740End:
741*/ 741*/