Re: ping.c
- From: Martin Baulig <martin home-of-linux org>
- To: Mark Galassi <rosalia cygnus com>
- cc: martin home-of-linux org, Greg lee <lee moore5651 lll hawaii edu>, gnome-list gnome org
- Subject: Re: ping.c
- Date: Thu, 9 Jul 1998 16:59:23 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE-----
On Thu, 9 Jul 1998, Mark Galassi wrote:
> To: martin@home-of-linux.org
> Subject: Re: ping.c
> From: Mark Galassi <rosalia@cygnus.com>
>
>
> Martin> #if (_LINUX_C_LIB_VERSION_MAJOR == 5)
> Martin> typedef struct icmphdr struct_icmp;
>
> Except that you should do a test for the existence of struct icmp,
> rather than a test for a particular version of glibc.
This is really better, I wanted to do this either -
'_LINUX_C_LIB_VERSION_MAJOR' was just a test to get it compile in libc5.
> As I mentioned earlier, the problem is not just a linux one. OSF/1
> does not have struct icmp, whereas solaris has it.
Oops, OSF/1 V3.0, V3.2 and Digital Unix V3.2C have struct icmp as do
SunOS 4.1.3 and BSD/OS 3.1.
So I'll check for the existance of struct icmp and use icmphdr otherwise
Martin
- -----------------------------------------------------------------
Martin Baulig - Angewandte Mathematik - Universitaet Trier
baulig@castor.uni-trier.de, http://www.home-of-linux.org/
Key: 1024-bit key with ID C8178435 created 1997/01/24
ID: 67 C1 84 A0 47 F5 11 C5 5F 68 4C 84 99 05 C3 92
Finger me for public key or fetch finger.txt from the url above
- ------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNaTa1YA8K7jIF4Q1AQFG4wP/V/9YjoWFZVJYjC/VuYYxhCNn7sjTzPkg
C9q8mMmr+/6ZIKjF9YeP5MiU5DRRSxLKT3clbq5e2AMa2an3xbi/769LaQ+oTC5d
mxxBqN7anhexa9ssE80Y4ASjdBHWBASVXU6vCR+EnSEly9xCJhR3nUkpKxA8LIqt
RoZ583aaumk=
=kdEZ
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]