pkgsrc/security/openvas-libraries/patches/patch-ac

23 lines
549 B
Text

$NetBSD: patch-ac,v 1.2 2013/12/13 11:01:11 jperkin Exp $
Include config.h before testing for things it defines.
--- libopenvas/pcap.c.orig 2008-12-16 13:03:21.000000000 +0000
+++ libopenvas/pcap.c
@@ -16,6 +16,8 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "config.h"
+#include <netinet/in.h>
#include <resolv.h>
#include <pcap.h>
#include <net/if.h>
@@ -33,7 +35,6 @@
#include "pcap_openvas.h"
#include "system_internal.h"
#include "network.h"
-#include "config.h"
#define MAXROUTES 1024