Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2019 12:45:05 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507640 - head/security/arpCounterattack/files
Message-ID:  <201907301245.x6UCj50Z068452@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Jul 30 12:45:04 2019
New Revision: 507640
URL: https://svnweb.freebsd.org/changeset/ports/507640

Log:
  security/arpCounterattack: fix build with GCC architectures
  
  When building with GCC, sys/types.h needs to be included:
  In file included from arpCounterattack.cpp:35:
  /usr/include/net/bpf.h:49:9: error: 'u_int32_t' does not name a type; did you mean 'uint32_t'?
  typedef u_int32_t bpf_u_int32;
  
  ^~~~~~~~~
  uint32_t
  
  Approved by:	linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21091

Modified:
  head/security/arpCounterattack/files/patch-arpCounterattack.cpp

Modified: head/security/arpCounterattack/files/patch-arpCounterattack.cpp
==============================================================================
--- head/security/arpCounterattack/files/patch-arpCounterattack.cpp	Tue Jul 30 12:43:04 2019	(r507639)
+++ head/security/arpCounterattack/files/patch-arpCounterattack.cpp	Tue Jul 30 12:45:04 2019	(r507640)
@@ -1,6 +1,6 @@
 --- arpCounterattack.cpp.orig	2019-03-13 08:10:31 UTC
 +++ arpCounterattack.cpp
-@@ -25,13 +25,14 @@
+@@ -25,13 +25,15 @@
  #include <fstream>
  #include <iostream>
  #include <queue>
@@ -12,6 +12,7 @@
    #include <sys/ioctl.h>
  #endif
  
++#include <sys/types.h>
 +#include <net/bpf.h>
  #include <errno.h>
  #include <pcap.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907301245.x6UCj50Z068452>