Skip to content

Commit b348a50

Browse files
authored
Merge pull request python-cmake-buildsystem#166 from python-cmake-buildsystem/fix-sys-select-h-on-vxworks
ConfigureChecks: VxWorks: Disable _XOPEN_SOURCE due to "sys/select.h" failing
2 parents dc582b8 + d95a42b commit b348a50

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

cmake/ConfigureChecks.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,18 @@ elseif(CMAKE_SYSTEM MATCHES "QNX\\-6\\.3\\.2$")
557557
# defining NI_NUMERICHOST.
558558

559559
set(define_xopen_source 0)
560+
561+
elseif(CMAKE_SYSTEM MATCHES "VxWorks\\-7$")
562+
563+
# VxWorks-7
564+
565+
# On VxWorks-7, defining _XOPEN_SOURCE or _POSIX_C_SOURCE
566+
# leads to a failure in select.h because sys/types.h fails
567+
# to define FD_SETSIZE.
568+
# Reported by Martin Oberhuber as V7COR-4651.
569+
570+
set(define_xopen_source 0)
571+
560572
endif()
561573

562574
if(define_xopen_source)

0 commit comments

Comments
 (0)