From 69841981f1eaf17345d032eeb77b7414a7132157 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 6 Jan 2023 20:07:42 +0100 Subject: [PATCH] Fix python build --- src/templates_front/templator_front.org | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/templates_front/templator_front.org b/src/templates_front/templator_front.org index f03a8be..33975b6 100644 --- a/src/templates_front/templator_front.org +++ b/src/templates_front/templator_front.org @@ -1650,6 +1650,11 @@ trexio_cp(const char* source, const char* dest) /* Call cp */ +#ifndef CP_COMMAND +#define CP_COMMAND "cp", "-r" +#endif + + pid_t pid = fork(); if (pid == 0) { execlp("cp", CP_COMMAND, source, dest, (char *)0);