Date: Fri, 27 Mar 1998 13:43:12 -0700 (MST) From: Steven Jorgensen <steve@igor.haunt.com> To: current@FreeBSD.ORG Subject: Posix level? Message-ID: <199803272043.NAA28899@igor.haunt.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803272043.NAA28899>