From 57b9294277f2f92e1478ff0d478e483d0a584347 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Fri, 13 Jan 2017 17:13:48 +0100 Subject: wrapper: Avoid 'scm_c_eval_string' usage. * src/wrapper.c (wrap_env_path): New function. (main): Use it. (inner_main): Let 'wrap_env_path' set the environment variables. Don't use 'scm_c_eval_string' when calling 'main' procedure. * Makefile.am (AM_CPPFLAGS): Define _GNU_SOURCE for 'asprintf'. --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 45bb941..a9b2bf7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in. # Copyright © 2003 Dale Mellor -# Copyright © 2015, 2016 Mathieu Lirzin +# Copyright © 2015, 2016, 2017 Mathieu Lirzin # # This file is part of GNU Mcron. # @@ -20,7 +20,7 @@ bin_PROGRAMS = bin/mcron bin/crontab sbin_PROGRAMS = bin/cron -AM_CPPFLAGS = -DPACKAGE_LOAD_PATH=\"$(moduledir)\" +AM_CPPFLAGS = -DPACKAGE_LOAD_PATH=\"$(moduledir)\" -D_GNU_SOURCE AM_CFLAGS = @GUILE_CFLAGS@ LDADD = @GUILE_LIBS@ -- cgit v1.2.3