title: Problems compiling iptables on mac
body: <p>I am trying to install snort on my mac and while compiling it, it shows a lot of errors about other libraries which it needs - like libnet, libpcre, iptables etc.
  I have compiled libnet , libpcre successfully. But when I downloaded iptables , I get a lot of compilation errors like :</p>
  
  <p>In file included from ../include/xtables.h:17,
                   from libxt_AUDIT.c:10:
  ../include/linux/types.h:27: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘<strong>le16’
  ../include/linux/types.h:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_<em>attribute</strong>’ before ‘<strong>be16’
  ../include/linux/types.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘</em>_attribute</strong>’ before ‘<strong>le32’
  ../include/linux/types.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘_<em>attribute</strong>’ before ‘</em>_be32’</p>
  
  <p>How do I resolve them ? DO I need kernel-headers package or something ? Or should this all be done only on Linux and am I wasting my time getting it to work on Mac ?</p>