From owner-svn-src-head@FreeBSD.ORG Thu Jul 15 14:41:06 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E20721065670; Thu, 15 Jul 2010 14:41:06 +0000 (UTC) (envelope-from luigi@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D26418FC1C; Thu, 15 Jul 2010 14:41:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o6FEf6Xu015450; Thu, 15 Jul 2010 14:41:06 GMT (envelope-from luigi@svn.freebsd.org) Received: (from luigi@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o6FEf6Lc015448; Thu, 15 Jul 2010 14:41:06 GMT (envelope-from luigi@svn.freebsd.org) Message-Id: <201007151441.o6FEf6Lc015448@svn.freebsd.org> From: Luigi Rizzo Date: Thu, 15 Jul 2010 14:41:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r210121 - head/sys/net X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jul 2010 14:41:07 -0000 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;