New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modbus-tcp.c move declaration to the begining of the scope #92

Closed
endrelovas opened this Issue Jan 29, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@endrelovas

Hello,

In order to be able to build on MSVS we need to move ioctloption declaration to the begining of the scope. modbus-tcp.c needs slight modification. After this it will compile.

static int _modbus_tcp_set_ipv4_options(int s)
{
int rc;
int option;

ifdef OS_WIN32 <== CHANGE STARTS

unsigned long ioctloption = 1;

endif <== CHANGE ENDS

@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Feb 25, 2013

Owner

Thank you for the report.

Owner

stephane commented Feb 25, 2013

Thank you for the report.

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