freebsd-ports/net-mgmt/collectd5/files/patch-src_modbus.c
Boris Samorodov 5c69003697 . add new option MODBUS (off by default); [1]
. add a mandatory dependency upon libinotify;  [2]
. bump PORTREVISION.                           [2]

while I'm here:
. pet portlint: remove whitespace before end of line;
. add a mandatory dependency upon libinotify to the accompanying
  port (net-mgmt/collectd) and bump PORTREVISION.

PR:		ports/178637  [1]
		ports/178634  [2]
Submitted by:	bsam (me)
Approved by:	ports@bsdserwis.com (maintainer)
2013-05-15 11:38:21 +00:00

12 lines
290 B
C

--- src/modbus.c.orig 2013-01-27 17:47:18.246255000 +0400
+++ src/modbus.c 2013-05-14 18:40:05.000000000 +0400
@@ -25,6 +25,9 @@
#include "plugin.h"
#include "configfile.h"
+/* FreeBSD needs this */
+#include <sys/socket.h>
+
#include <netdb.h>
#include <modbus/modbus.h>