From owner-freebsd-ports Tue Jul 11 07:30:17 1995 Return-Path: ports-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA21607 for ports-outgoing; Tue, 11 Jul 1995 07:30:17 -0700 Received: from seaquest (seaquest.sea.legent.com [155.35.41.137]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA21597 for ; Tue, 11 Jul 1995 07:30:01 -0700 Received: by seaquest (5.x/SMI-SVR4(DEO-022095 Problems to obrien@sea.legent.com)) id AA04062; Tue, 11 Jul 1995 10:28:05 -0400 From: obrien@Sea.Legent.com (David O'Brien) Message-Id: <9507111428.AA04062@seaquest> Subject: Re: Dmitry Khrustalev: ports/609: tin cannot find sendmail and vi To: roberto@blaise.ibp.fr (Ollivier Robert) Date: Tue, 11 Jul 1995 10:28:04 -0400 (EDT) Cc: ports@freebsd.org In-Reply-To: <199507111202.OAA01852@blaise.ibp.fr> from "Ollivier Robert" at Jul 11, 95 02:02:01 pm X-Mailer: ELM [version 2.4 PL24 PGP2] Content-Type: text Sender: ports-owner@freebsd.org Precedence: bulk > > > 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)