Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 14:41:06 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210121 - head/sys/net
Message-ID:  <201007151441.o6FEf6Lc015448@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Thu Jul 15 14:41:06 2010
New Revision: 210121
URL: http://svn.freebsd.org/changeset/base/210121

Log:
  small portability fix to build on linux/windows

Modified:
  head/sys/net/pfil.h

Modified: head/sys/net/pfil.h
==============================================================================
--- head/sys/net/pfil.h	Thu Jul 15 14:37:59 2010	(r210120)
+++ head/sys/net/pfil.h	Thu Jul 15 14:41:06 2010	(r210121)
@@ -69,7 +69,11 @@ struct pfil_head {
 	pfil_list_t	ph_out;
 	int		ph_type;
 	int		ph_nhooks;
+#if defined( __linux__ ) || defined( _WIN32 )
+	rwlock_t	ph_mtx;
+#else
 	struct rmlock	ph_lock;
+#endif
 	union {
 		u_long		phu_val;
 		void		*phu_ptr;



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