Fix native compilation 50/25050/1 9.99.2 9.99.3 9.99.4 jellyfish/9.99.2 jellyfish/9.99.3 jellyfish/9.99.4 jellyfish_9.99.2 jellyfish_9.99.3 jellyfish_9.99.4
authorScott Murray <scott.murray@konsulko.com>
Thu, 23 Jul 2020 14:57:55 +0000 (10:57 -0400)
committerScott Murray <scott.murray@konsulko.com>
Thu, 23 Jul 2020 15:14:30 +0000 (11:14 -0400)
The use of nanosleep in the previous job wait change fails to build
for me when building af-main-native, so add the required #include of
time.h.  It's not clear to me right off why it actually built for the
target without it, that behavior difference may warrant some further
investigation.

Bug-AGL: SPEC-3365, SPEC-3427, SPEC-3457

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I73203e564c96d3eaea250ce8867149f6a155ec07

src/utils-systemd.c

index 8ccb81b..5438500 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <time.h>
 
 #ifndef NO_LIBSYSTEMD
 # include <systemd/sd-bus.h>