ports/net-mgmt/collectd5/files/patch-src__modbus.c
Joseph Mingrone ff55205c69 net-mgmt/collectd5: Update to version 5.7.1.
Other Changes:
  - Remove unnecessary global BUILD_DEPENDS, LIB_DEPENDS and RUN_DEPENDS.
  - Redo patches to fix portlint warnings.
  - Fix linked library errors reported by poudriere.

Remaining issue:
  - When the XMMS option is selected, xmms.so is linked to libraries in
    devel/glib12 and x11-toolkits/gtk12, but adding
    XMMS_USE=GNOME=glib12,gtk12 causes a build error.

PR:	216670
Submitted by:	ports@bsdserwis.com (maintainer)
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9444
2017-02-09 00:44:42 +00:00

12 lines
249 B
C

--- src/modbus.c.orig 2017-01-23 07:53:57 UTC
+++ src/modbus.c
@@ -26,6 +26,9 @@
#include "configfile.h"
#include "plugin.h"
+/* FreeBSD needs this */
+#include <sys/socket.h>
+
#include <modbus.h>
#include <netdb.h>
#include <sys/socket.h>