diff --git a/libraries/AP_Common/missing/fcntl.h b/libraries/AP_Common/missing/fcntl.h new file mode 100644 index 0000000000..a942f06a41 --- /dev/null +++ b/libraries/AP_Common/missing/fcntl.h @@ -0,0 +1,9 @@ +#include_next + +/* + * we only want to define as 0 for those targets in which it doesn't make + * sense + */ +#if defined(HAVE_OCLOEXEC) && HAVE_OCLOEXEC == 0 +#define O_CLOEXEC 0 +#endif