small portability fix to build on linux/windows

This commit is contained in:
Luigi Rizzo 2010-07-15 14:41:06 +00:00
parent 297151a0f3
commit b62cb72c48
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210121

View file

@ -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;