From owner-freebsd-hackers Thu Feb 6 05:37:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA04441 for hackers-outgoing; Thu, 6 Feb 1997 05:37:29 -0800 (PST) Received: from po1.glue.umd.edu (root@po1.glue.umd.edu [129.2.128.44]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA04410; Thu, 6 Feb 1997 05:37:22 -0800 (PST) Received: from modem.eng.umd.edu (modem.eng.umd.edu [129.2.98.187]) by po1.glue.umd.edu (8.8.5/8.7.3) with ESMTP id IAA11402; Thu, 6 Feb 1997 08:37:11 -0500 (EST) Received: from localhost (chuckr@localhost) by modem.eng.umd.edu (8.8.5/8.7.3) with SMTP id IAA07021; Thu, 6 Feb 1997 08:37:10 -0500 (EST) X-Authentication-Warning: modem.eng.umd.edu: chuckr owned process doing -bs Date: Thu, 6 Feb 1997 08:37:10 -0500 (EST) From: Chuck Robey X-Sender: chuckr@modem.eng.umd.edu To: Bruce Evans cc: imp@village.org, freebsd-ports@freebsd.org, hackers@freebsd.org, obrien@NUXI.com Subject: Re: conditionally including In-Reply-To: <199702060300.OAA01390@godzilla.zeta.org.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 6 Feb 1997, Bruce Evans wrote: > >: strerror() doesn't exist on old systems. > > > >True. But how old is old? > > Orphaned systems still don't have it. > > >: I think we should just use `#ifdef __FreeBSD__' and in > >: ports. Original authors should use a better method to suit themselves. > > > >Yes, but this whole thing got started because the #ifdef __FreeBSD__ > >was slowly turning into > > #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) > >in a bunch of places due to those projects riding along on the FreeBSD > >port's coat tails. > > Maybe include unconditionally? I'm not sure why I mentioned > the __FreeBSD__ ifdef above. I've never liked ifdefing on the OS - > it isn't necessary for one OS and gives too-large ifdefs for more than > 2 OS's. You'll still need large ifdefs if configuration depends on the > value of `BSD' and the value is OS-dependent. No, that wouldn't work. We're talking about something we'd ask authors of packages that weren't written for FreeBSD to include (and to include for NetBSD and OpenBSD) to get their packages to work with ours. This isn't just for your own ports use. Since just including sys/param.h would cause packages to fail to compile on many platforms, no one outside FreeBSD would be willing to take our advice on it. We need something that works for Free|Net|OpenBSD but isn't fatal for other platforms. > > Bruce > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------