diff options
Diffstat (limited to 'include/c.h')
-rw-r--r-- | include/c.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/c.h b/include/c.h index a72e2641c..1eda75f6b 100644 --- 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 |