Blob Blame History Raw
From aad8296f1f6b727adfef8f0a7794cf7536080729 Mon Sep 17 00:00:00 2001
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
Date: Fri, 27 May 2016 00:10:09 +0900
Subject: [PATCH] Fix implicit function declaration on subprocs.c

Fix the following warnings

../../driver/subprocs.c: In function 'make_job':
../../driver/subprocs.c:288:19: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration]
   job->launched = time ((time_t *) 0);
---
 driver/subprocs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/driver/subprocs.c b/driver/subprocs.c
index 29ad600..c0a9f62 100644
--- a/driver/subprocs.c
+++ b/driver/subprocs.c
@@ -44,6 +44,7 @@
 #endif /* VMS */
 
 #include <signal.h>		/* for the signal names */
+#include <time.h>  /* for time */
 
 #if !defined(SIGCHLD) && defined(SIGCLD)
 # define SIGCHLD SIGCLD
-- 
2.7.4