Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

MSG_NOSIGNAL is not defined on Mac OSX #39

@makohoek

Description

@makohoek

MacOSX does not support the flag MSG_NOSIGNAL. This result in a compile failure on Socket.cpp

This is the failure log:

[  9%] Built target xmlserializer
[ 12%] Built target pfw_utility
[ 86%] Built target parameter
[ 87%] Building CXX object remote-processor/CMakeFiles/remote-processor.dir/Socket.cpp.o
/Users/makohoek/Documents/Development/parameter-framework/remote-processor/Socket.cpp: In member function 'bool CSocket::read(void*, uint32_t)':
/Users/makohoek/Documents/Development/parameter-framework/remote-processor/Socket.cpp:111:78: error: 'MSG_NOSIGNAL' was not declared in this scope
         int32_t iAccessedSize = ::recv(_iSockFd, &pucData[uiOffset], uiSize, MSG_NOSIGNAL);
                                                                              ^
/Users/makohoek/Documents/Development/parameter-framework/remote-processor/Socket.cpp: In member function 'bool CSocket::write(const void*, uint32_t)':
/Users/makohoek/Documents/Development/parameter-framework/remote-processor/Socket.cpp:143:78: error: 'MSG_NOSIGNAL' was not declared in this scope
         int32_t iAccessedSize = ::send(_iSockFd, &pucData[uiOffset], uiSize, MSG_NOSIGNAL);
                                                                              ^
make[2]: *** [remote-processor/CMakeFiles/remote-processor.dir/Socket.cpp.o] Error 1
make[1]: *** [remote-processor/CMakeFiles/remote-processor.dir/all] Error 2
make: *** [all] Error 2

CMake configuration:
https://gist.github.com/Makohoek/4bafe8fc72a6f0d1130a

See for more information about MSG_NOSIGNAL support in MacOSX
http://www.lists.apple.com/archives/macnetworkprog/2002/Dec/msg00091.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions