Reported by Ryan Steinmetz <zi@freebsd.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
/* For systems that don't support O_CLOEXEC, just don't bother.
It's not open for long anyway. */
#ifndef O_CLOEXEC
-#define O_CLOEXEC
+#define O_CLOEXEC 0
#endif
static int load_datum(struct openconnect_info *vpninfo,
<ul>
<li><b>OpenConnect HEAD</b>
<ul>
+ <li>Fix build on systems like FreeBSD 8 without <tt>O_CLOEXEC</tt>.</li>
<li>Add <tt>--dtls-local-port</tt> option.</li>
<li>Print correct error when <tt>/dev/net/tun</tt> cannot be opened.</li>
<li>Fix <tt>openconnect.pc</tt> pkg-config file not to require <tt>zlib.pc</tt> on systems which lack it (like RHEL5).</li>