diff options
author | Roy Marples <roy@marples.name> | 2007-12-07 14:31:51 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-12-07 14:31:51 +0000 |
commit | acf425e82212179a27686ebc6a42e6021ea71e5c (patch) | |
tree | 97b466d815614ccd7941397abf35158d80be68fe | |
parent | 17585a3c044f942e838eb928c24511eaea5c25ba (diff) |
Include time.h on linux
-rw-r--r-- | src/runscript.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c index 8b60c17c..e4089c21 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -48,6 +48,7 @@ #include <stdlib.h> #include <string.h> #include <termios.h> +#include <time.h> #include <unistd.h> #ifdef __linux__ @@ -515,7 +516,7 @@ static bool svc_wait (rc_depinfo_t *depinfo, const char *svc) return (false); /* Some services don't have a timeout, like checkroot and checkfs */ - keywords = rc_deptree_depend (deptree, svc, "keywords"); + keywords = rc_deptree_depend (depinfo, svc, "keywords"); STRLIST_FOREACH (keywords, s, i) { if (strcmp (s, "notimeout") == 0) { forever = true; |