<net/bpf.h> should include <sys/ioccom.h>

Sascha Wildner saw at online.de
Tue Apr 14 11:57:33 PDT 2009

Guy Harris schrieb:
<net/bpf.h> defines ioctl codes, so it should include <sys/ioccom.h>,  
so it doesn't require code that includes <net/bpf.h> to also include  
<sys/ioccom.h> or a header that includes it.  When I originally  
created <sys/ioccom.h> in SunOS 4.0, I intended it to be included by  
header files that defined ioctls, rather than by .c files.
Guy, thanks for clarifying,

please see http://leaf.dragonflybsd.org/~swildner/ioccom.diff, which 
adjusts our code to this intention (include <sys/ioccom.h> only in 
headers where ioctl codes are defined).

If no one objects, I'll commit it tomorrow or Thursday.



More information about the Bugs mailing list