Module Name: src
Committed By: kamil
Date: Thu Jun 15 23:55:42 UTC 2017
Modified Files:
src/external/bsd/ipf/dist/ipsend: lsock.c
Log Message:
Don't include <sys/user.h> on NetBSD in IPF (lsock)
This header in this context is freebsdism.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/bsd/ipf/dist/ipsend/lsock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ipf/dist/ipsend/lsock.c
diff -u src/external/bsd/ipf/dist/ipsend/lsock.c:1.2 src/external/bsd/ipf/dist/ipsend/lsock.c:1.3
--- src/external/bsd/ipf/dist/ipsend/lsock.c:1.2 Sun Jul 22 14:27:36 2012
+++ src/external/bsd/ipf/dist/ipsend/lsock.c Thu Jun 15 23:55:42 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: lsock.c,v 1.2 2012/07/22 14:27:36 darrenr Exp $ */
+/* $NetBSD: lsock.c,v 1.3 2017/06/15 23:55:42 kamil Exp $ */
/*
* lsock.c (C) 1995-1998 Darren Reed
@@ -39,7 +39,9 @@ static const char rcsid[] = "@(#)Id: lso
#include <linux/sched.h>
#include <linux/netdevice.h>
#include <nlist.h>
+#if defined(__FreeBSD__)
#include <sys/user.h>
+#endif
#include <sys/socket.h>
#include <math.h>
#include <netinet/in.h>