modbus.c:164: error: `MSG_DONTWAIT' undeclared
Bug #375926 reported by
Yishin Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmodbus |
Fix Released
|
Low
|
Stéphane Raimbault |
Bug Description
The trunk branch can not be build on Cygwin.
Error message:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT modbus.lo -MD -MP -MF .deps/modbus.Tpo -c modbus.c -DDLL_EXPORT -DPIC -o .libs/modbus.o
modbus.c: In function `modbus_flush':
modbus.c:164: error: `MSG_DONTWAIT' undeclared (first use in this function)
Reason:
There's no MSG_DONTWAIT macro defined in /usr/include/
Related branches
Changed in libmodbus: | |
status: | New → In Progress |
Changed in libmodbus: | |
status: | In Progress → Fix Committed |
Changed in libmodbus: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Try to replace MSG_DONTWAIT by 0 and add a printf just before
then run the unit test named unit-test-master (you need to run unit-test-slave before).
Try to observe the behaviour when a flush occurs to see if the call to recv() is blocking with your flag.