From owner-freebsd-questions Sat Sep 18 10:50:32 1999 Delivered-To: freebsd-questions@freebsd.org Received: from darius.concentric.net (darius.concentric.net [207.155.198.79]) by hub.freebsd.org (Postfix) with ESMTP id 50DCF14E6F for ; Sat, 18 Sep 1999 10:50:29 -0700 (PDT) (envelope-from mjamet@computer.org) Received: from newman.concentric.net (newman.concentric.net [207.155.198.71]) by darius.concentric.net (8.9.1a/(98/12/15 5.12)) id NAA19818; Sat, 18 Sep 1999 13:50:28 -0400 (EDT) [1-800-745-2747 The Concentric Network] Received: from computer.org (ts010d17.hil-ny.concentric.net [206.173.16.221]) by newman.concentric.net (8.9.1a) id NAA09900; Sat, 18 Sep 1999 13:50:27 -0400 (EDT) Message-ID: <37E3D027.12EDC8A2@computer.org> Date: Sat, 18 Sep 1999 13:47:19 -0400 From: Michael Jamet X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: #define's set by C compiler - which should be used for porting? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all, I am not sure if this question is technical enough for the "ports" list. Here goes. I use SDCC, an embedded systems compiler, which the developer wrote under Linux (so I know it compiles there). In addition, I have compiled and used it under Windows 95 and NT under Cygnus. I went through the code and found various #ifdef's for Linux, Cygnus, and i386, but only one for bsd and it was for "bsd4_4" which is NOT defined by the compiler. Thanks also to Doug Ambrisko for help in this regard. What #define's should I use? The compiler does not define generic BSD macro's only FREEBSD specific one's, but I suspect the changes required for FreeBSD would apply equally well to the other BSD's. The handbook also mentions /usr/include/sys/param.h, but the code (currently) does not include this file. Any thoughts would be appreciated. Michael Jamet To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message