wpa_supplicant, eloop_register_timeout() and ntpdate

Holger Schurig holgerschurig
Thu Nov 14 01:36:45 PST 2013

>> My "man clock_gettime" doesn't document CLOCK_BOOTTIME. And it says
> Mine does :-)
> manpages v3.54

On Debian Wheezy this won't work. I applied your patch
http://p.sipsolutions.net/b02ac4b02793dfcf.txt and now compilation

cc -c -o ../src/utils/os_unix.o -MMD -Wall -g -O2 -I../src
-I../src/utils -I/usr/include/libnl3 -DCONFIG_FAKE_SIGNAL_LEVEL=ERROR
-I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include
../src/utils/os_unix.c: In function ?os_get_reltime?:
../src/utils/os_unix.c:65:30: error: ?CLOCK_BOOTTIME? undeclared
(first use in this function)
../src/utils/os_unix.c:65:30: note: each undeclared identifier is
reported only once for each function it appears in
make[3]: *** [../src/utils/os_unix.o] Error 1

Debian Wheezy is at libc6:i386 2.13-38 (Embedded GNU C Library: Shared

Maybe something like


will help?   The Linux kernel will return -EINVAL if the running
kernel doesn't have CLOCK_BOOTTIME implemented, so it's save to wildly
try that value.

More information about the Hostap mailing list