diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-11-08 11:25:17 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-11-15 11:48:08 -0800 |
commit | f8e27d88e4c31089467d8717597c4153723081e6 (patch) | |
tree | 84708cf16eef4f4c3108b527622833ae1e227781 /gnulib/import/m4/gnulib-comp.m4 | |
parent | 5abebf3c3fd28a148e43be587c4e4065a0e53ae9 (diff) | |
download | gdb-f8e27d88e4c31089467d8717597c4153723081e6.zip gdb-f8e27d88e4c31089467d8717597c4153723081e6.tar.gz gdb-f8e27d88e4c31089467d8717597c4153723081e6.tar.bz2 |
Import the time_r gnulib module
This allows GDB to use localtime_r unconditionally.
See https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00022.html
for details on the compile error mentioned below.
gdb/ChangeLog:
2019-11-15 Christian Biesinger <cbiesinger@google.com>
* gdbsupport/common-defs.h: Include time.h before pathmax.h to
avoid compile errors.
gnulib/ChangeLog:
2019-11-15 Christian Biesinger <cbiesinger@google.com>
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* config.in: Regenerate.
* configure: Regenerate.
* import/Makefile.am: Update.
* import/Makefile.in: Regenerate.
* import/m4/gnulib-cache.m4: Update.
* import/m4/gnulib-comp.m4: Update.
* import/m4/time_r.m4: New file.
* import/time_r.c: New file.
* update-gnulib.sh: Import time_r.
Change-Id: I53fc861b192940d613ca97f2910b4533c730f667
Diffstat (limited to 'gnulib/import/m4/gnulib-comp.m4')
-rw-r--r-- | gnulib/import/m4/gnulib-comp.m4 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnulib/import/m4/gnulib-comp.m4 b/gnulib/import/m4/gnulib-comp.m4 index fdfc206..1a434d2 100644 --- a/gnulib/import/m4/gnulib-comp.m4 +++ b/gnulib/import/m4/gnulib-comp.m4 @@ -182,6 +182,7 @@ AC_DEFUN([gl_EARLY], # Code from module threadlib: gl_THREADLIB_EARLY # Code from module time: + # Code from module time_r: # Code from module unistd: # Code from module unistd-safer: # Code from module unsetenv: @@ -619,6 +620,12 @@ AC_DEFUN([gl_INIT], gl_FUNC_GEN_TEMPNAME gl_THREADLIB gl_HEADER_TIME_H + gl_TIME_R + if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then + AC_LIBOBJ([time_r]) + gl_PREREQ_TIME_R + fi + gl_TIME_MODULE_INDICATOR([time_r]) gl_UNISTD_H gl_UNISTD_SAFER gl_FUNC_UNSETENV @@ -934,6 +941,7 @@ AC_DEFUN([gl_FILE_LIST], [ lib/tempname.c lib/tempname.h lib/time.in.h + lib/time_r.c lib/unistd--.h lib/unistd-safer.h lib/unistd.c @@ -1075,6 +1083,7 @@ AC_DEFUN([gl_FILE_LIST], [ m4/tempname.m4 m4/threadlib.m4 m4/time_h.m4 + m4/time_r.m4 m4/unistd-safer.m4 m4/unistd_h.m4 m4/warn-on-use.m4 |