MinGW make error 'MSG_NOSIGNAL' undeclared in unit-test-server.c #175

Closed
ghost opened this Issue Dec 2, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@ghost

ghost commented Dec 2, 2013

when compiling the newest libmodbus master branch
with the newest MinGW (GCC 4.8.1) on Win7 via the steps:

autogen.sh
./configure
make

make breaks with:

unit-test-server.c:200:43: error: 'MSG_NOSIGNAL' undeclared

it can be resolved (like in src/modbus-tcp.c) by adding

#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif

in tests/unit-test-server.c before the line

#include "unit-test.h"

@stephane stephane closed this in 1eabc8a Dec 2, 2013

@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Dec 2, 2013

Owner

Thank you.
I'm running out of time this week but I'll look to the other Windows issues ASAP...

Owner

stephane commented Dec 2, 2013

Thank you.
I'm running out of time this week but I'll look to the other Windows issues ASAP...

mk8 added a commit to mk8/libmodbus that referenced this issue Jan 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment