Mercurial > hg > octave-shane > gnulib-hg
annotate modules/unistd-safer @ 17582:630472a8cafd
gettimeofday: port recent C++ fix to Emacs
Without this further patch, Emacs won't build due to
the portcheck failing. Also, this simplifies the patch a bit.
* lib/time.in.h (localtime, gmtime): Don't replace unless
GNULIB_GETTIMEOFDAY. Treat them more like mktime.
* lib/time.in.h (localtime, gmtime):
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
* modules/time (time.h):
Don't worry about about the possibility of localtime and gmtime
being absent; they're present in all C libraries we know about.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
Don't assume sys_time is present and has been initialized.
Instead, use a hack that should work even if it hasn't been.
Don't use a portcheck for gmtime or localtime; this supports
the hack.
* modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 17 Dec 2013 12:38:54 -0800 |
parents | 77079ed36606 |
children |
rev | line source |
---|---|
4110 | 1 Description: |
4172 | 2 File descriptor functions that avoid clobbering STD{IN,OUT,ERR}_FILENO. |
4110 | 3 |
4 Files: | |
6165 | 5 lib/unistd--.h |
4110 | 6 lib/dup-safer.c |
5813 | 7 lib/fd-safer.c |
6135 | 8 lib/pipe-safer.c |
9 lib/unistd-safer.h | |
4110 | 10 m4/unistd-safer.m4 |
11 | |
12 Depends-on: | |
12457
2a3833485e1c
fcntl: use to simplify other modules
Eric Blake <ebb9@byu.net>
parents:
12425
diff
changeset
|
13 fcntl |
11049
8398d9f607b4
unistd: guarantee STDIN_FILENO here, for OS/2 EMX
Eric Blake <ebb9@byu.net>
parents:
7497
diff
changeset
|
14 unistd |
4110 | 15 |
16 configure.ac: | |
17 gl_UNISTD_SAFER | |
18 | |
19 Makefile.am: | |
15250
77079ed36606
unistd-safer: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
12457
diff
changeset
|
20 lib_SOURCES += dup-safer.c fd-safer.c pipe-safer.c |
4110 | 21 |
22 Include: | |
23 "unistd-safer.h" | |
24 | |
5251
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
25 License: |
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
26 GPL |
42b53a22aee5
Add a license tag to every module.
Bruno Haible <bruno@clisp.org>
parents:
4197
diff
changeset
|
27 |
4197 | 28 Maintainer: |
29 Paul Eggert, Jim Meyering |