From owner-freebsd-hackers@FreeBSD.ORG Sun May 11 13:40:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFFE0106566B for ; Sun, 11 May 2008 13:40:56 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 901B68FC1A for ; Sun, 11 May 2008 13:40:56 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so2511283wah.3 for ; Sun, 11 May 2008 06:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=FWPA16tq8UTzqZrXF7Xlh01w41uX5fCoQXpku87ngwk=; b=wornT2DEOT1vZI0bcYdZgttdMwAz/X6rnjKDxzBPqvRdp0DjB9Nnxs7mGJWHTSsXntEPXCq8se5dklkD1jkBXCMgwwThyzDWZCenBfdclwPBCyuUcK9wXWoN+YIbVCjWJApMPuXKxRodEuYk73nCx3TY7KMlCtQnR6THAInJK+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=wq9qCQBZAWbw+kben+FBoopIrU9/85/R+SLvePvhuVBfLocXpTgxwcBnqu31c0Av6kSGqgfylH4AcG5khlCcGFZ5Q3HksNErT6ovvTnT+Z+S+eYkZaGrsEv2PYTwxJ41vmHN4mRy+NgrC8QS/G8f/nKAXzw4hhGQJKdgRWnX0kU= Received: by 10.114.174.2 with SMTP id w2mr6434378wae.17.1210513256121; Sun, 11 May 2008 06:40:56 -0700 (PDT) Received: from ?192.168.10.42? ( [99.155.199.64]) by mx.google.com with ESMTPS id k14sm12206241waf.29.2008.05.11.06.40.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 May 2008 06:40:55 -0700 (PDT) Message-Id: From: Garrett Cooper To: d@delphij.net In-Reply-To: <482499AB.5000609@delphij.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Sun, 11 May 2008 06:42:00 -0700 References: <539c60b90805091103u2c8907a6q83cdca69fb45888e@mail.gmail.com> <482499AB.5000609@delphij.net> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-hackers@freebsd.org, stevefranks@ieee.org Subject: Re: correct #define in source to specify FBSD vs. linux? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2008 13:40:56 -0000 On May 9, 2008, at 11:36 AM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Steve Franks wrote: > | Seems there is a more appropriate list for my earlier question to > | freebsd-questions: > | > | On and on I charge porting linux engineering tools. Major pita. I > | see a bunch of #ifdef __APPLE__ lines to pull in alternate headers; > | what's the equiv for FreeBSD? > > #ifdef __FreeBSD__? > > - -- > Xin LI http://www.delphij.net/ > FreeBSD - The Power to Serve! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkgkmaoACgkQi+vbBBjt66C30ACeIbw6P7CuwErAIvzcUjX4d4Gk > 7G0An3+S2hM9YctAkKsWDVzkEoZIMhOH > =AzxS > -----END PGP SIGNATURE----- #ifdef __linux__ for Linux as well. See: http://lists.debian.org/debian-devel/2001/01/msg00971.html (same applies for all platforms I would assume).. -Garrett