diff options
author | Phil Blundell <philb@gnu.org> | 1999-01-13 14:01:25 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 1999-01-13 14:01:25 +0000 |
commit | 2b17cc4fa2b31cd75021fa5c0222969643b0452a (patch) | |
tree | efc36045eb2c3491b86df2b8a813c6a165514e67 /iptunnel.c | |
parent | Fix IPv6 compilation problems. (diff) | |
download | net-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.tar.gz net-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.tar.bz2 net-tools-2b17cc4fa2b31cd75021fa5c0222969643b0452a.zip |
Provide local definition of IPPROTO_GRE to allow iptunnel
to build under glibc 2.0.
Make it configurable whether iptunnel & ipmaddr are built,
with the default being off. This seems to be necessary since
making them work with 2.0 looks hard. Does it sound
reasonable?
Diffstat (limited to 'iptunnel.c')
-rw-r--r-- | iptunnel.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -47,6 +47,11 @@ #undef GRE_VERSION #define GRE_VERSION htons(0x0007) +/* Old versions of glibc do not define this */ +#if __GLIBC__ == 2 && __GLIBC_MINOR__ == 0 +#define IPPROTO_GRE 47 +#endif + #include "utils.h" static void usage(void) __attribute__((noreturn)); |