
include_directories(../inc)
include_directories(../../pal/inc)


if(WIN32)
    #use static crt
    add_definitions(-MT) 
    add_definitions(-DWIN32_LEAN_AND_MEAN)
    include_directories(../../inc) #needed for warning control

    set(TWO_WAY_PIPE_SOURCES 
        win/twowaypipe.cpp
    )
endif(WIN32)

if(CLR_CMAKE_PLATFORM_UNIX)
    add_compile_options(-fPIC)

    add_definitions(-DFEATURE_PAL)
    add_definitions(-DPAL_IMPLEMENTATION)
    add_definitions(-D_POSIX_C_SOURCE=200809L)

    set(TWO_WAY_PIPE_SOURCES
      unix/twowaypipe.cpp
    )

endif(CLR_CMAKE_PLATFORM_UNIX)

add_library(debug-pal STATIC ${TWO_WAY_PIPE_SOURCES})


include_directories(../inc)
include_directories(../../pal/inc)

add_definitions(-DPAL_STDCPP_COMPAT=1)

if(WIN32)
    #use static crt
    add_definitions(-MT) 
    add_definitions(-DWIN32_LEAN_AND_MEAN)
    include_directories(../../inc) #needed for warning control

    set(TWO_WAY_PIPE_SOURCES 
        win/twowaypipe.cpp
    )
endif(WIN32)

if(CLR_CMAKE_PLATFORM_UNIX)
    add_compile_options(-fPIC)

    add_definitions(-DFEATURE_PAL)
    add_definitions(-DPAL_IMPLEMENTATION)
    add_definitions(-D_POSIX_C_SOURCE=200809L)

    set(TWO_WAY_PIPE_SOURCES
      unix/twowaypipe.cpp
    )

endif(CLR_CMAKE_PLATFORM_UNIX)

add_library(debug-pal STATIC ${TWO_WAY_PIPE_SOURCES})

Fix NetBSD build: Define PAL_STDCPP_COMPAT=1 for twowaypipe.cpp
Fix NetBSD build: Define PAL_STDCPP_COMPAT=1 for twowaypipe.cpp

After recent changes in twowaypipe.cpp, this file started to use <pal.h>.
If we are mixing <pal.h> and system headers we need to define PAL_STDCPP_COMPAT
by a preprocessor.

Regression has been introduced with https://github.com/dotnet/coreclr/pull/3219
GIT commit ID 4fee7ae253a271cc70028202104e92128d1a5bd8
