Source: util-linux Source-Version: 2.26.2-5 Severity: important Tags: patch X-Debbugs-Cc: debian-...@lists.debian.org
Hi! Here's a patch to fix the FTBFS on kFreeBSD systems. I've gone with the quick fix (partially lifted from Steven proposal for glibc) that will work only with very recent kFreeBSD versions, instead of changing the fcntl() call to fallback to set cloexec in a separate call, just to get the packages building and unclog the buildd queues, which seem to be piling up. Tested to build successfully on kfreebsd-amd64. Thanks, Guillem
--- include/c.h | 6 ++++++ 1 file changed, 6 insertions(+) --- a/include/c.h +++ b/include/c.h @@ -231,6 +231,12 @@ static inline int dirfd(DIR *d) #define O_CLOEXEC 0 #endif +#ifdef __FreeBSD_kernel__ +#ifndef F_DUPFD_CLOEXEC +#define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ +#endif +#endif + #ifndef AI_ADDRCONFIG #define AI_ADDRCONFIG 0x0020