Quick tangent on this subject.  What should I do in the case that Red Hat
5.2 header file <netinet/in.h> doesn't contain the definition of 
IP_PKTINFO?  Currently I have a linux_defs.h where I include
<netinet/in.h> but ifndef IP_PKTINFO, I define it.  Is this pretty much
my only option?

Thanks,
Tuan

On Tue, 6 Apr 1999, Glynn Clements wrote:

> 
> Andrew Perron wrote:
> 
> > I am trying to get older network code (relying on older libraries?) to
> > compile under RedHat 5.2.  There are header errors and it seems that there
> > was a switch somewhere along the lines.  What needs to be changed to get
> > them to compile and function.
> 
> As a general rule, glibc-2 programs shouldn't be including any kernel
> headers (<linux/*.h>, <asm/*.h>). Networking headers typically live in
> net or netinet. If you get compilation errors regarding undefined
> types, use fgrep/find to locate the appropriate header.
> 
> -- 
> Glynn Clements <[EMAIL PROTECTED]>
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to