bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdomap bug - patch


From: Pete French
Subject: Re: gdomap bug - patch
Date: Sat, 26 Jan 2002 13:40:41 +0000

> See configure.in ... it tries to compile a tiny test program.  Perhaps
> it needs other includes rather than net/if.h on BSD?

This compiles fine....

        #include <sys/types.h>
        #include <sys/socket.h>
        #include <net/if.h>
        main()
        {
                struct ifreq s;
                s.ifr_addr.sa_len = 0;
        }

But though I have tried to add it to configure.in I cant get
it to define HAVE_SA_LEN for some reason :-( I added this to the configure.in:

AC_TRY_COMPILE([#include <sys/types.h>
                #include <sys/socket.h>
                #include <net/if.h>],
               [struct ifreq s; s.ifr_addr.sa_len = 0;],
               sa_len=1, sa_len=0)

what did I get wrong ? I have never played with autoconf before so I am
working fairly blindly here I am afraid.

> The sa_len field does not exist at all on any of my systems.

Interesting, I assumed it was an older BSD feature - but I just checked some
VMS sytems and they dont have it either. The original gdomap interface
listing code runs fine under VMS by the way :-)

-bat.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]