Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 1995 10:28:04 -0400 (EDT)
From:      obrien@Sea.Legent.com (David O'Brien)
To:        roberto@blaise.ibp.fr (Ollivier Robert)
Cc:        ports@freebsd.org
Subject:   Re: Dmitry Khrustalev: ports/609: tin cannot find sendmail and vi
Message-ID:  <9507111428.AA04062@seaquest>
In-Reply-To: <199507111202.OAA01852@blaise.ibp.fr> from "Ollivier Robert" at Jul 11, 95 02:02:01 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> > In addition to grep'ing for __NetBSD__ and adding __FreeBSD__ to the list
> > (isn't there a common predefined symbol that could catch both???  how about
> > adding __bsd4_4__ to both or something), screen.c needs a mod.
> 
> To catch all of 4.4BSD derivative systems, use the GUIDELINES files :
> 
> #if (defined(BSD) && (BSD >=199306))
> #endif
> -- 
> Ollivier ROBERT     -=- The daemon is FREE! -=-     roberto@FreeBSD.ORG


I thought that was the case, but following the man page for cpp(1) I ussued
``touch foo.h; cpp -dM foo.h''.  This shows all the predefined macros and
their values.  I only got:

    #define __FreeBSD__ 2
    #define i386 1
    #define __GNUC__ 2
    #define unix 1

I even tried ``gcc -E -dM foo.h'' and got:

    #define __FreeBSD__ 2 
    #define __i386__ 1 
    #define __i386 1 
    #define __GNUC_MINOR__ 6 
    #define i386 1 
    #define __unix 1 
    #define __unix__ 1 
    #define __GNUC__ 2 
    #define unix 1 


I did wonder why I didn't get BSD defined.  I looked at the source in
/usr/src/gnu/usr.bin/cc and didn't find anything different.  Am I missing
something?

-- David    (obrien@sea.legent.com)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9507111428.AA04062>