From owner-freebsd-current Fri Mar 27 12:43:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06645 for freebsd-current-outgoing; Fri, 27 Mar 1998 12:43:18 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from igor.haunt.com (igor.haunt.com [204.134.9.98]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA06635 for ; Fri, 27 Mar 1998 12:43:14 -0800 (PST) (envelope-from steve@igor.haunt.com) Received: (from steve@localhost) by igor.haunt.com (8.8.8/8.8.8) id NAA28899 for current@freebsd.org; Fri, 27 Mar 1998 13:43:12 -0700 (MST) (envelope-from steve) From: Steven Jorgensen Message-Id: <199803272043.NAA28899@igor.haunt.com> Subject: Posix level? To: current@FreeBSD.ORG Date: Fri, 27 Mar 1998 13:43:12 -0700 (MST) X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just recently, March 8th accoring to the rcsid, a file _posix.h was added to the current tree to setup proper defines for your current POSIX level. In this file, I noticed that the value of _POSIX_VERSION is set to 199009L which is the value set for the version of POSIX defined in 1990. Is this correct? It seems like a pretty old version of the standard to be compliant to. Anyway, the reason I am mailing is that I'm trying to port the next version of Advanced Khoros to FreeBSD current. I maintain the Khoros port to FreeBSD because I don't like linux, and I work from home fairly often. ^:) Anyway, the next version is in beta testing and I'm trying to port it to current, and the following code in _posix.h is preventing me from getting anywhere on it. In the new version, we've upgraded our compliance to 199309L, so #if evaluates to true causing it to error out before even trying to compile: /* I'm not sure if I'm allowed to do this, but at least initially * it may catch some teething problems: */ #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE > _POSIX_VERSION) #error _POSIX_C_SOURCE > _POSIX_VERSION #endif The comment above the #if, even indicates that it may not be legal to error out there. We can handle any parts of POSIX 199309L not supported by FreeBSD current by working around them (we do work fine under 2.x) , but only it if allows our compiles to continue. Is this really the way the _posix.h file should work? Steve -- ----------------------------------------------------------- Steven Jorgensen steve@khoral.com steve@haunt.com ------------------------------+---------------------------- Khoral Research Inc. | PHONE: (505) 837-6500 6200 Uptown Blvd, Suite 200 | FAX: (505) 881-3842 Albuquerque, NM 87110 | URL: http://www.khoral.com/ ----------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message