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