bug-mcron
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] Add missing #include directives.


From: Ludovic Courtès
Subject: [PATCH 1/5] Add missing #include directives.
Date: Sun, 23 Feb 2020 18:49:50 +0100

<libguile.h> in Guile 2.x used to include these, but this is no longer
the case with 3.0.

* src/cron.c, src/mcron.h: Include <string.h>.
* src/utils.c: Include <stdio.h>.
---
 src/cron.c  | 1 +
 src/mcron.c | 1 +
 src/utils.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/cron.c b/src/cron.c
index 369f1d1..074f882 100644
--- a/src/cron.c
+++ b/src/cron.c
@@ -19,6 +19,7 @@
 
 #include "utils.h"
 #include <signal.h>
+#include <string.h>
 
 /* Forward declarations.  */
 static void inner_main (void *closure, int argc, char *argv[]);
diff --git a/src/mcron.c b/src/mcron.c
index 22cc680..c0b151a 100644
--- a/src/mcron.c
+++ b/src/mcron.c
@@ -19,6 +19,7 @@
 
 #include "utils.h"
 #include <argp.h>
+#include <string.h>
 
 /* Forward declarations.  */
 static void inner_main (void *closure, int argc, char *argv[]);
diff --git a/src/utils.c b/src/utils.c
index 3ea05f3..00a4150 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -18,6 +18,7 @@
 
 #include "utils.h"
 #include <stdbool.h>
+#include <stdio.h>
 
 void
 wrap_env_path (const char *envar, const char *dir)
-- 
2.25.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]