<feed xmlns='http://www.w3.org/2005/Atom'>
<title>portable/apps/nc/compat/sys, branch master</title>
<subtitle>A mirror of https://github.com/libressl/portable.git
</subtitle>
<id>https://git.lua4.win/portable/atom?h=master</id>
<link rel='self' href='https://git.lua4.win/portable/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/'/>
<updated>2022-04-16T06:59:33+00:00</updated>
<entry>
<title>Fix unreachable nc portability shim</title>
<updated>2022-04-16T06:59:33+00:00</updated>
<author>
<name>Sebastian Blunt</name>
<email>git@sebastianblunt.com</email>
</author>
<published>2022-04-16T06:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=fe903fb7c59600f7679b2afb0d33f4a0c3f93ae2'/>
<id>urn:sha1:fe903fb7c59600f7679b2afb0d33f4a0c3f93ae2</id>
<content type='text'>
This fixes nc failing to run on darwin due to it incorrectly setting the
linux-specific SOCK_NONBLOCK flag on connect.

nc already had a portability shim in apps/nc/compat/sys/socket.h, which
kicks in if SOCK_NONBLOCK is undefined. But that header includes
include/compat/sys/socket.h, which also has a portability shim that
defines a default value for SOCK_NONBLOCK if it's undefined. Thus the
first portability shim was unreachable.

Fixes this by moving the NEED_SOCKET_FLAGS flag into the outer shim, and
having the inner shim activate if NEED_SOCKET_FLAGS is defined.

This closes https://github.com/libressl-portable/portable/issues/631
</content>
</entry>
<entry>
<title>allow nc to build on linux and os x</title>
<updated>2015-09-13T23:42:15+00:00</updated>
<author>
<name>Brent Cook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2015-09-13T16:56:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=8c90be2a29053ac613dfe0c11a423da16c7c4520'/>
<id>urn:sha1:8c90be2a29053ac613dfe0c11a423da16c7c4520</id>
<content type='text'>
</content>
</entry>
</feed>
