summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1c5087)
raw | patch | inline | side by side (parent: c1c5087)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 1 Aug 2015 09:46:45 +0000 (11:46 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 3 Aug 2015 21:15:02 +0000 (23:15 +0200) |
We look for modbus/modbus.h in /usr/local/include/modbus
but we should look for modbus.h
This is only an issue on FreeBSD since /usr/local/include is not
in the default search path.
but we should look for modbus.h
This is only an issue on FreeBSD since /usr/local/include is not
in the default search path.
configure.ac | patch | blob | history | |
src/modbus.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 8a494da8137957f7a3efa224c2bddb40fb848dfb..e7d5dd58c9f79ee226b0603b05c287fc89987322 100644 (file)
--- a/configure.ac
+++ b/configure.ac
SAVE_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags"
- AC_CHECK_HEADERS(modbus/modbus.h, [], [with_libmodbus="no (modbus/modbus.h not found)"])
+ AC_CHECK_HEADERS(modbus.h, [], [with_libmodbus="no (modbus.h not found)"])
CPPFLAGS="$SAVE_CPPFLAGS"
fi
diff --git a/src/modbus.c b/src/modbus.c
index df169825706a9bde4d2d06fa22d3ed63ed883d1f..aa69ee10100f2c0555b5c8386c2a1fdef25f9621 100644 (file)
--- a/src/modbus.c
+++ b/src/modbus.c
#include <netdb.h>
-#include <modbus/modbus.h>
+#include <modbus.h>
#ifndef LIBMODBUS_VERSION_CHECK
/* Assume version 2.0.3 */