define ICMP_DEST_UNREACH in systems where it is not available

This commit is contained in:
Nikos Mavrogiannopoulos
2013-12-11 08:47:27 +01:00
parent 8a9402a4ab
commit 60893a11d7

View File

@@ -87,6 +87,14 @@
#include <gnutls/crypto.h>
#include <icmp-ping.h>
#ifndef ICMP_DEST_UNREACH
# ifdef ICMP_UNREACH
# define ICMP_DEST_UNREACH ICMP_UNREACH
# else
# define ICMP_DEST_UNREACH 3
# endif
#endif
/* I see RENUMBERED constants in bits/in.h - !!?
* What a fuck is going on with libc? Is it a glibc joke? */
#ifdef IPV6_2292HOPLIMIT