IPfilter
[Top] [All Lists]

ipfilter 4.1.16 ip_log.c compilation patch for Solaris

To: ipfilter@coombs.anu.edu.au
Subject: ipfilter 4.1.16 ip_log.c compilation patch for Solaris
From: Ian Donaldson <iand@ekit-inc.com>
Date: Tue, 26 Dec 2006 21:49:44 +1100
Delivered-to: sp-com-lists@consult.net
Delivered-to: ipfilter-list@securepoint.com
Sender: owner-ipfilter@coombs.anu.edu.au
ip_log.c failed to compile on Solaris 10 until I applied this tweak...
(struct pollhead is not defined unless _KERNEL or _KMEMUSER is defined)

My compilation was only on Sol 10 but it looks like the problem
would occur in older Solaris's too (at least Sol8 and Sol9, by
inspection of <sys/poll.h>)

Ian D
--

*** ip_log.c_old        Mon Dec 18 04:57:29 2006
--- ip_log.c    Tue Dec 26 03:44:50 2006
***************
*** 151,157 ****
  # if defined(linux) && defined(_KERNEL)
  wait_queue_head_t     iplh_linux[IPL_LOGSIZE];
  # endif
! # if SOLARIS
  extern        kcondvar_t      iplwait;
  extern        struct pollhead iplpollhead[IPL_LOGSIZE];
  # endif
--- 151,157 ----
  # if defined(linux) && defined(_KERNEL)
  wait_queue_head_t     iplh_linux[IPL_LOGSIZE];
  # endif
! # if SOLARIS && defined(_KERNEL)
  extern        kcondvar_t      iplwait;
  extern        struct pollhead iplpollhead[IPL_LOGSIZE];
  # endif


<Prev in Thread] Current Thread [Next in Thread>
  • ipfilter 4.1.16 ip_log.c compilation patch for Solaris, Ian Donaldson <=