Date: Tue, 10 Apr 2012 21:53:44 -0700 From: Kaz Kylheku <kaz@kylheku.com> To: <freebsd-bugs@freebsd.org> Subject: Broken _XOPEN_SOURCE feature test macro. Message-ID: <b93ddcf1882d8f64bc6eb9865f0f4c01@127.0.0.1>
next in thread | raw e-mail | index | archive | help
Hi all, I'm using FreeBSD 9.0 (the VirtualBox image for Port Maintainers http://vboxtindi.chruetertee.ch/) to port some code. It looks like support for the _XOPEN_SOURCE feature test macro is broken if this macro is simply defined, or defined with any value less than 500. If you compile your source with -D_XOPEN_SOURCE or, say, -D_XOPEN_SOURCE=2, it looks like you get *everything*. The <sys/cdefs.h> header treats this case as if you had not specified any feature test macro at all. (I'm using _XOPEN_SOURCE=2 because on NetBSD 5.1, specifying merely _XOPEN_SOURCE leaves the popen an pclose declarations hidden in <stdio.h>. I could go to 500, but there isn't anything I need that I don't already have with 2. I don't have a copy of these old X/Open documents, and have not been able to Google up anything about this value 2, but I'm guessing that maybe there was a version 2 which added popen and pclose.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b93ddcf1882d8f64bc6eb9865f0f4c01>