1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Fix build issues with upstream patch (https://github.com/facebook/osquery/pull/3634)

- Bump PORTREVISION
This commit is contained in:
Ryan Steinmetz 2017-09-12 23:55:09 +00:00
parent 63fb856dd6
commit 1ec3328202
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=449744
2 changed files with 23 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= osquery
PORTVERSION= 2.7.0
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= sysutils
MAINTAINER= zi@FreeBSD.org

View File

@ -0,0 +1,22 @@
diff --git a/osquery/tables/networking/freebsd/routes.cpp b/osquery/tables/networking/freebsd/routes.cpp
index 991564caf..fd7a878fa 100644
--- osquery/tables/networking/freebsd/routes.cpp
+++ osquery/tables/networking/freebsd/routes.cpp
@@ -18,7 +18,6 @@
#include <arpa/inet.h>
#include <net/if_dl.h>
-#include <net/route.h>
#include <sys/sysctl.h>
#include <boost/algorithm/string/trim.hpp>
@@ -27,6 +26,9 @@
#include <osquery/logger.h>
#include <osquery/tables.h>
+// Include belongs here to fix build on older fbsds.
+#include <net/route.h>
+
#include "osquery/tables/networking/utils.h"
namespace osquery {