Com: always skip SOCK_CLOEXEC for RTEMS and vxWorks
This commit is contained in:
1 parent
78d685688c
commit
43bd5ee1c2
1 file changed
+5
-2
@@ -28,8 +28,11 @@
|
||||
#include "epicsAssert.h"
|
||||
#include "errlog.h"
|
||||
|
||||
/* Linux and *BSD (at least) specific way to atomically set O_CLOEXEC */
|
||||
#ifdef SOCK_CLOEXEC
|
||||
/* Linux and *BSD (at least) specific way to atomically set O_CLOEXEC.
|
||||
* RTEMS 5.1 provides SOCK_CLOEXEC, but doesn't implement accept4()
|
||||
* no point anyway since neither RTEMS nor vxWorks can execv().
|
||||
*/
|
||||
#if defined(SOCK_CLOEXEC) && !defined(__rtems__) && !defined(vxWorks)
|
||||
/* with glibc, SOCK_CLOEXEC does not expand to a simple constant */
|
||||
# define HAVE_SOCK_CLOEXEC
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user