1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-07-22 10:47:43 +02:00

Fix python build

This commit is contained in:
Anthony Scemama 2023-01-06 20:07:42 +01:00
parent f6184620f1
commit 69841981f1

View File

@ -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);