clock_gettime and CLOCK_REALTIME

2018-07-29 Thread Eli Zaretskii
Gnulib's gettime.c assumes that CLOCK_REALTIME is a preprocessor macro: # if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME if (clock_gettime (CLOCK_REALTIME, ts) == 0) return; # endif Does Posix mandate that CLOCK_REALTIME be a macro? With mingw.org's MinGW runtime 5.1.0, it isn't:

Re: clock_gettime and CLOCK_REALTIME

2018-07-29 Thread Paul Eggert
Eli Zaretskii wrote: Does Posix mandate that CLOCK_REALTIME be a macro? Yes, the POSIX spec for requires CLOCK_REALTIME to be a symbolic constant, and it says that a symbolic constant must be a macro that expands to a compile-time constant expression with an integer type (it need not be usab

Re: Why is gl_GC_RANDOM not found?

2018-07-29 Thread Bruce Korb
I am using Gary Vaughan's bootstrap script from years ago. It's worked fine all this time, but I'll instrument it to see what gives. On Sat, Jul 28, 2018 at 7:09 PM Bruno Haible wrote: > > Bruce Korb wrote: > > $ autoreconf --symlink --install > > configure.ac:47: error: possibly undefined macro:

Re: Why is gl_GC_RANDOM not found?

2018-07-29 Thread Bruce Korb
gnulib/gnulib-tool --no-changelog --aux-dir=build-aux --m4-base=m4 --libtool --symlink --import base64 close crypto/gc-pbkdf2-sha1 crypto/sha256 ctype fdl gendocs inttypes lgpl-2.1 malloc-posix snprintf stdbool stdnoreturn strdup-posix strstr random time termios So you are referring to this? Yo