--- gvpe/src/netcompat.h 2003/10/14 19:12:26 1.1 +++ gvpe/src/netcompat.h 2003/10/17 01:33:37 1.6 @@ -1,5 +1,6 @@ /* netcompat.h -- network compatibility header + Copyright (C) 2003 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,13 +20,14 @@ #ifndef VPE_NETCOMPAT_H #define VPE_NETCOMPAT_H -#include "config.h" - +#include #include #ifdef HAVE_NETINET_IN_H # include #endif -#include +#ifdef HAVE_ARPA_INET_H +# include +#endif #include #ifdef HAVE_NETINET_IN_SYSTM_H # include @@ -34,8 +36,8 @@ # include #endif -#ifndef IPTOS_LOWCOST -# define IPTOS_LOWCOST 0x02 +#ifndef IPTOS_MINCOST +# define IPTOS_MINCOST 0x02 #endif #ifndef IPTOS_RELIABILITY # define IPTOS_RELIABILITY 0x04 @@ -59,6 +61,10 @@ # define IPPROTO_GRE 47 #endif +#ifndef ICMP_ECHOREPLY +# define ICMP_ECHOREPLY 0 +#endif + #ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif