Include time.h on linux
This commit is contained in:
parent
17585a3c04
commit
acf425e822
@ -48,6 +48,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
#include <time.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
@ -515,7 +516,7 @@ static bool svc_wait (rc_depinfo_t *depinfo, const char *svc)
|
|||||||
return (false);
|
return (false);
|
||||||
|
|
||||||
/* Some services don't have a timeout, like checkroot and checkfs */
|
/* 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) {
|
STRLIST_FOREACH (keywords, s, i) {
|
||||||
if (strcmp (s, "notimeout") == 0) {
|
if (strcmp (s, "notimeout") == 0) {
|
||||||
forever = true;
|
forever = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user