summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2010-07-15 14:41:06 +0000
committerluigi <luigi@FreeBSD.org>2010-07-15 14:41:06 +0000
commit9f2bcd601a4395212eac45589457a6a534a2cbc8 (patch)
tree6fc8a7b356a029c94fe8f3dc2568b7af2383e660 /sys/net
parenta5495755be8e03bd7f605ffa849586babb05710d (diff)
downloadFreeBSD-src-9f2bcd601a4395212eac45589457a6a534a2cbc8.zip
FreeBSD-src-9f2bcd601a4395212eac45589457a6a534a2cbc8.tar.gz
small portability fix to build on linux/windows
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfil.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/pfil.h b/sys/net/pfil.h
index 6ac750a..a8738f1 100644
--- a/sys/net/pfil.h
+++ b/sys/net/pfil.h
@@ -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;
OpenPOWER on IntegriCloud