From owner-freebsd-ports Thu Jan 9 09:24:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id JAA11110 for ports-outgoing; Thu, 9 Jan 1997 09:24:42 -0800 (PST) Received: from rover.village.org (rover.village.org [204.144.255.49]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id JAA11102 for ; Thu, 9 Jan 1997 09:24:39 -0800 (PST) Received: from rover.village.org [127.0.0.1] by rover.village.org with esmtp (Exim 0.56 #1) id E0viODS-0005Ep-00; Thu, 9 Jan 1997 10:24:34 -0700 To: Chuck Robey Subject: Re: Niklas Hallqvist: archivers/hpack.non-usa.only Cc: ports@freebsd.org In-reply-to: Your message of "Thu, 09 Jan 1997 12:10:55 EST." References: Date: Thu, 09 Jan 1997 10:24:33 -0700 From: Warner Losh Message-Id: Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message Chuck Robey writes: : I don't know ... does sys/param.h exist on _every_ last system that has : unix or __unix__ defined? If not, the code above is a fatal error, and no : good. If it's guaranteed true, it's fine, and I'd use it. It does seem to exist on almost every unix system today. I'm in the process of looking for examples that aren't true. I'd say that at least 99.999% of all systems that define unix or __unix__ have sys/param.h based on my porting experiences. The Lions book, for example, has a file called unix/param.h, which matches closely the stuff found in sys/param.h, kinda sorta. So there is precidence for this sort of stuff going back a long ways (to V6, for those that don't know the Lions book). : Can you make that guarantee? If not, did you see the thing about using : .if exists ? Nearly. And it would be easy to add exception code for those few systems that it doesn't exist on, if any. Almost nobody else in the unix world has bmake on their system, so that solution is much less portible by quite a bit. Warner