<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Conflict when using net/socket.h and sys/select.h from NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85270/conflict-when-using-net-socket-h-and-sys-select-h-from-ncs</link><description>To reproduce: Include the net/socket.h and sys/select.h in the same file. There are multiple errors generated due to redefinition of function names: 
 ncs\v1.8.0\zephyr\include\net\socket_select.h:112:17: error: redefinition of &amp;#39;struct zsock_timeval&amp;#39;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 03 Apr 2022 09:59:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85270/conflict-when-using-net-socket-h-and-sys-select-h-from-ncs" /><item><title>RE: Conflict when using net/socket.h and sys/select.h from NCS</title><link>https://devzone.nordicsemi.com/thread/361364?ContentTypeID=1</link><pubDate>Sun, 03 Apr 2022 09:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2bddedc-3f19-4b94-b802-81a93708966d</guid><dc:creator>morerook</dc:creator><description>&lt;p&gt;Unfortunately, it generates more errors of the following:&lt;/p&gt;
&lt;p&gt;In file included from \ncs\v1.8.0\zephyr\include\posix\time.h:61,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \ncs\v1.8.0\toolchain\opt\arm-none-eabi\include\c++c:\9.2.1\ctime:42,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \ncs\v1.8.0\toolchain\opt\arm-none-eabi\include\c++c:\9.2.1\bits\locale_facets_nonio.h:39,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \ncs\v1.8.0\toolchain\opt\arm-none-eabi\include\c++c:\9.2.1\locale:41,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \ncs\v1.8.0\toolchain\opt\arm-none-eabi\include\c++c:\9.2.1\iomanip:43,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from\Documents\Git\thingy91-fall-detection\firmware\adxl362\edge-impulse-sdk\third_party\flatbuffers\include\flatbuffers\util.h:32,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \Documents\Git\thingy91-fall-detection\firmware\adxl362\edge-impulse-sdk\third_party\flatbuffers\include\flatbuffers\flexbuffers.h:24,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from \Documents\Git\thingy91-fall-detection\firmware\adxl362\edge-impulse-sdk\tensorflow\lite\micro\kernels\circular_buffer.cc:17:&lt;br /&gt;ncs\v1.8.0\zephyr\include\posix\posix_types.h:47:15: error: conflicting declaration &amp;#39;typedef void* pthread_t&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 47 | typedef void *pthread_t;&lt;/p&gt;
&lt;p&gt;If I remove CONFIG_POSIX_API=y and reinstate CONFIG_NET_SOCKETS_POSIX_NAMES=y, then this error goes away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflict when using net/socket.h and sys/select.h from NCS</title><link>https://devzone.nordicsemi.com/thread/355596?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 14:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b42e416d-3e84-4ec5-9792-188e00a6b485</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Try adding CONFIG_POSIX_API=y to your prj.conf and see if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflict when using net/socket.h and sys/select.h from NCS</title><link>https://devzone.nordicsemi.com/thread/355576?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 13:45:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb59fee9-0eeb-4577-bca8-519d1edfd0fe</guid><dc:creator>morerook</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to use the Edge Impulse library with the modem library in the nRF9160. In the Edge Impulse library they used the sys/select.h which has some symbols which are redefined in the net/socket_select.h library, causing the conflicts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Conflict when using net/socket.h and sys/select.h from NCS</title><link>https://devzone.nordicsemi.com/thread/355538?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 12:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a4b6b3-95ab-419f-8783-2066a7521c86</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What are you trying to achieve? What do you need from sys/select.h that you can&amp;#39;t get from the zephyr library?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>