1 Patch reverts upstream commit:
2 https://github.com/collectd/collectd/commit/6124da7a48f28f54fc09ebeb942d1037516fe6ab
4 The commit changed the detection path due to FreeBSD issues,
5 but apparently affects also Openwrt buildroot negatively.
8 From 6124da7a48f28f54fc09ebeb942d1037516fe6ab Mon Sep 17 00:00:00 2001
9 Subject: [PATCH] Fix libmodbus detection on FreeBSD
11 We look for modbus/modbus.h in /usr/local/include/modbus
12 but we should look for modbus.h
14 This is only an issue on FreeBSD since /usr/local/include is not
15 in the default search path.
17 Reversed patch to be applied:
21 @@ -2585,7 +2585,7 @@ then
22 SAVE_CPPFLAGS="$CPPFLAGS"
23 CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags"
25 - AC_CHECK_HEADERS(modbus.h, [], [with_libmodbus="no (modbus.h not found)"])
26 + AC_CHECK_HEADERS(modbus/modbus.h, [], [with_libmodbus="no (modbus/modbus.h not found)"])
28 CPPFLAGS="$SAVE_CPPFLAGS"
37 +#include <modbus/modbus.h>
39 #ifndef LIBMODBUS_VERSION_CHECK
40 /* Assume version 2.0.3 */