stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

add socket library to compile tests on QNX #49

Closed rcmadruga closed 12 years ago

rcmadruga commented 12 years ago

In order to compile the tests on QNX 6.4.1 I had to manually add the following to tests/Makefile:

LIBS: -lsocket
stephane commented 12 years ago

Which condition (specific to QNX) can I use to add this LIBS in Makefile.am?

rcmadruga commented 12 years ago

Maybe you can use the host_os check.

case "${host_os}" in
    *nto-qnx*)
    ;;
stephane commented 12 years ago

Hi rcmadruga,

Could you test this change, please? https://github.com/stephane/libmodbus/commit/83adabfa3e7869ca73f2e245dd14ee48356b6d9d

stephane commented 12 years ago

Ping

stephane commented 12 years ago

Oh I've just received a confirmation from another QNX user so I can close it.