From 470f2769291eb849c2637760c5c0cee7c63abce8 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 12 Feb 2025 15:56:22 +0800 Subject: [PATCH] pkg_install: fix for missing O_CLOEXEC --- pkgtools/pkg_install/files/add/perform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index ef8a6da3f45c..c9afaebda852 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -708,6 +708,9 @@ extract_files(struct pkg_task *pkg) return -1; } +#ifndef O_CLOEXEC +#define O_CLOEXEC 0 +#endif #ifndef O_DIRECTORY #define O_DIRECTORY 0 #endif