aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2020-07-23 10:57:55 -0400
committerScott Murray <scott.murray@konsulko.com>2020-07-23 11:14:30 -0400
commitaf8db35cc01c57b7d1d2e4fa7815df8c16f8454f (patch)
tree28f41421d20b59b8011ba3ea145a4a39d7aea019
parent3a2efc3143d89d036794f2d8274794482cb2c961 (diff)
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
-rw-r--r--src/utils-systemd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils-systemd.c b/src/utils-systemd.c
index 8ccb81b..5438500 100644
--- a/src/utils-systemd.c
+++ b/src/utils-systemd.c
@@ -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>