Commit 76284c17ca94f2e9813c02c3ca7773c80b64f26e

Authored by Stéphane Raimbault
1 parent 4583f5ce

Fix proper check of HAVE_DECL_TIOCSRS485 in recent Win32 fix

Showing 1 changed file with 1 additions and 1 deletions
src/modbus-rtu.c
... ... @@ -745,7 +745,7 @@ int modbus_rtu_set_serial_mode(modbus_t *ctx, int mode)
745 745  
746 746 int modbus_rtu_get_serial_mode(modbus_t *ctx) {
747 747 if (ctx->backend->backend_type == _MODBUS_BACKEND_TYPE_RTU) {
748   -#if defined(HAVE_DECL_TIOCSRS485)
  748 +#if HAVE_DECL_TIOCSRS485
749 749 modbus_rtu_t *ctx_rtu = ctx->backend_data;
750 750 return ctx_rtu->serial_mode;
751 751 #else
... ...