Boost C++ Libraries: Ticket #7982: pthread_delay_np() parm compile error on AIX https://svn.boost.org/trac10/ticket/7982 <p> On AIX 7, pthread_delay_np is declared as: </p> <p> extern int pthread_delay_np <span class="underline">((struct timespec *)); </span></p> <p> Compilation fails with: === vacpp.compile.c++ bin.v2/libs/thread/build/vacpp/release/address-model-32/threading-multi/pthread/thread.o "libs/thread/src/pthread/thread.cpp", line 439.48: 1540-0256 (S) A parameter of type "timespec *" cannot be initialized with an expression of type "const timespec *". "libs/thread/src/pthread/thread.cpp", line 439.48: 1540-1205 (I) The error occurred while converting to parameter 1 of "pthread_delay_np(timespec *)". === </p> <p> It appears that there is a bug related to this, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/78" title="#78: Bugs: pthread_delay_np() parm incorrect (closed: Fixed)">#78</a>. </p> <p> Compiled fine with 1.52.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7982 Trac 1.4.3 viboes Tue, 05 Feb 2013 21:19:28 GMT owner, status changed https://svn.boost.org/trac10/ticket/7982#comment:1 https://svn.boost.org/trac10/ticket/7982#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Tue, 05 Feb 2013 21:30:45 GMT <link>https://svn.boost.org/trac10/ticket/7982#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7982#comment:2</guid> <description> <p> Would the following patch solve the issue? </p> <pre class="wiki">+ # if defined(__IBMCPP__) + BOOST_VERIFY(!pthread_delay_np(const_cast&lt;timespec*&gt;(&amp;ts))); + # else BOOST_VERIFY(!pthread_delay_np(&amp;ts)); + # endif </pre> </description> <category>Ticket</category> </item> <item> <author>Kevin Burge <kevin.burge@…></author> <pubDate>Tue, 05 Feb 2013 21:47:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7982#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7982#comment:3</guid> <description> <p> The patch resolves the compilation error. I did not test the behavior, though. Thank you! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Thu, 07 Feb 2013 18:46:30 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/7982#comment:4 https://svn.boost.org/trac10/ticket/7982#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> Ticket viboes Wed, 13 Feb 2013 06:42:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7982#comment:5 https://svn.boost.org/trac10/ticket/7982#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/82838" title="Thread: merge from trunk 1.54 - once_atomic; null_mutex">[82838]</a> </p> Ticket