<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: _POSIX_C_SOURCE</title>
	<atom:link href="http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/</link>
	<description>Thomas Thurman does not like cold meals because of broken applications.</description>
	<lastBuildDate>Fri, 30 Oct 2009 10:59:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-383</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 24 Nov 2008 03:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-383</guid>
		<description>The problem is that _POSIX_C_SOURCE is stupid, and doesn&#039;t mean &quot;I need POSIX features&quot;. It means &quot;I need POSIX features and I *don&#039;t* need non-POSIX features. Basically this means that you only use _POSIX_C_SOURCE when you want to treat all platforms as being completely identical. If you are using autoconf, then pretty much by definition you don&#039;t want to use _POSIX_C_SOURCE. (Yes, this means _POSIX_C_SOURCE is completely useless in the real world. It&#039;s not meant for the real world, it&#039;s meant for POSIX-compliance test suites.)

If you get a &quot;not defined&quot; warning on linux when you remove _POSIX_C_SOURCE, then set _GNU_SOURCE instead.</description>
		<content:encoded><![CDATA[<p>The problem is that _POSIX_C_SOURCE is stupid, and doesn&#8217;t mean &#8220;I need POSIX features&#8221;. It means &#8220;I need POSIX features and I *don&#8217;t* need non-POSIX features. Basically this means that you only use _POSIX_C_SOURCE when you want to treat all platforms as being completely identical. If you are using autoconf, then pretty much by definition you don&#8217;t want to use _POSIX_C_SOURCE. (Yes, this means _POSIX_C_SOURCE is completely useless in the real world. It&#8217;s not meant for the real world, it&#8217;s meant for POSIX-compliance test suites.)</p>
<p>If you get a &#8220;not defined&#8221; warning on linux when you remove _POSIX_C_SOURCE, then set _GNU_SOURCE instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan Hauffa</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-382</link>
		<dc:creator>Jan Hauffa</dc:creator>
		<pubDate>Sun, 23 Nov 2008 18:13:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-382</guid>
		<description>On my MacOS 10.5 system, sys/cdefs.h contains a few lines that look like this:

#if defined(_POSIX_C_SOURCE) &amp;&amp; _POSIX_C_SOURCE == xyz

This only works if _POSIX_C_SOURCE has a value.

http://opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html

The above link suggests that _POSIX_C_SOURCE should be defined to have the value 200112L.</description>
		<content:encoded><![CDATA[<p>On my MacOS 10.5 system, sys/cdefs.h contains a few lines that look like this:</p>
<p>#if defined(_POSIX_C_SOURCE) &amp;&amp; _POSIX_C_SOURCE == xyz</p>
<p>This only works if _POSIX_C_SOURCE has a value.</p>
<p><a href="http://opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html" rel="nofollow">http://opengroup.org/onlinepubs/009695399/functions/xsh_chap02_02.html</a></p>
<p>The above link suggests that _POSIX_C_SOURCE should be defined to have the value 200112L.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meh</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-381</link>
		<dc:creator>meh</dc:creator>
		<pubDate>Sun, 23 Nov 2008 16:52:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-381</guid>
		<description>The compilation is stopping on a line like

#if defined(_POSIX_C_SOURCE) &amp;&amp; _POSIX_C_SOURCE == 1

Try changing your #define to something like

#define _POSIX_C_SOURCE 1

which is probably what you wanted in the first place.</description>
		<content:encoded><![CDATA[<p>The compilation is stopping on a line like</p>
<p>#if defined(_POSIX_C_SOURCE) &amp;&amp; _POSIX_C_SOURCE == 1</p>
<p>Try changing your #define to something like</p>
<p>#define _POSIX_C_SOURCE 1</p>
<p>which is probably what you wanted in the first place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Kellner</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-380</link>
		<dc:creator>Christian Kellner</dc:creator>
		<pubDate>Sun, 23 Nov 2008 14:09:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-380</guid>
		<description>&quot;_POSIX_C_SOURCE means &#039;I want to use POSIX and I don’t want to use any *non*-POSIX calls?&#039;&quot;

I guess not only on OSX, but on all compliant POSIX sources. From the spec: &quot;Additional symbols not required or explicitly permitted by IEEE Std 1003.1-2001 to be in that header shall not be made visible, except when enabled by another feature test macro.&quot;

I guess on OSX that &quot;enabled by another feature test macro&quot; thing is the &quot;_DARWIN_C_SOURCE&quot; macro.</description>
		<content:encoded><![CDATA[<p>&#8220;_POSIX_C_SOURCE means &#8216;I want to use POSIX and I don’t want to use any *non*-POSIX calls?&#8217;&#8221;</p>
<p>I guess not only on OSX, but on all compliant POSIX sources. From the spec: &#8220;Additional symbols not required or explicitly permitted by IEEE Std 1003.1-2001 to be in that header shall not be made visible, except when enabled by another feature test macro.&#8221;</p>
<p>I guess on OSX that &#8220;enabled by another feature test macro&#8221; thing is the &#8220;_DARWIN_C_SOURCE&#8221; macro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Thurman</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-379</link>
		<dc:creator>Thomas Thurman</dc:creator>
		<pubDate>Sun, 23 Nov 2008 13:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-379</guid>
		<description>What, so on OS X, _POSIX_C_SOURCE means &quot;I want to use POSIX and I don&#039;t want to use any *non*-POSIX calls?&quot;</description>
		<content:encoded><![CDATA[<p>What, so on OS X, _POSIX_C_SOURCE means &#8220;I want to use POSIX and I don&#8217;t want to use any *non*-POSIX calls?&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukáš 'Spike' Polívka</title>
		<link>http://blogs.gnome.org/tthurman/2008/11/23/_posix_c_source/comment-page-1/#comment-378</link>
		<dc:creator>Lukáš 'Spike' Polívka</dc:creator>
		<pubDate>Sun, 23 Nov 2008 13:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.gnome.org/tthurman/?p=170#comment-378</guid>
		<description>Is this your answer?

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man5/compat.5.html</description>
		<content:encoded><![CDATA[<p>Is this your answer?</p>
<p><a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man5/compat.5.html" rel="nofollow">http://developer.apple.com/documentation/Darwin/Reference/ManPages/man5/compat.5.html</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
