mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
2e4c1818a3
O_CLOEXEC is not available on Nuttx, nor it makes sense there. Define it as 0, so we can use it in code.
10 lines
191 B
C
10 lines
191 B
C
#include_next <fcntl.h>
|
|
|
|
/*
|
|
* 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
|