Permalink
Browse files

Add -lsocket to compile on QNX

  • Loading branch information...
1 parent 1fca027 commit 83adabfa3e7869ca73f2e245dd14ee48356b6d9d @stephane committed Apr 9, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 configure.ac
  2. +4 −0 src/Makefile.am
View
@@ -54,8 +54,12 @@ case "${host_os}" in
*mingw32*)
os_win32="true"
;;
+ *nto-qnx*)
+ os_qnx="true"
+ ;;
esac
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "true")
+AM_CONDITIONAL(OS_QNX, test "$os_qnx" = "true")
# Checks for programs.
AC_PROG_CC
View
@@ -16,6 +16,10 @@ if OS_WIN32
libmodbus_la_LIBADD = -lwsock32
endif
+if OS_QNX
+libmodbus_la_LIBADD = -lsocket
+endif
+
libmodbus_la_LDFLAGS = $(AM_LDFLAGS) -no-undefined -version-info $(LIBMODBUS_LT_VERSION_INFO)
# Header files to install

0 comments on commit 83adabf

Please sign in to comment.