From b3496d76e934a8df42ec5bca214b9ae08c814cfc Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 25 Jun 2012 22:13:35 +0200 Subject: [PATCH] Fix build on systems without O_CLOEXEC Reported by Ryan Steinmetz Signed-off-by: David Woodhouse --- gnutls.c | 2 +- www/changelog.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gnutls.c b/gnutls.c index 31d87b1..c90d6b8 100644 --- a/gnutls.c +++ b/gnutls.c @@ -239,7 +239,7 @@ static int check_certificate_expiry(struct openconnect_info *vpninfo, gnutls_x50 /* 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, diff --git a/www/changelog.xml b/www/changelog.xml index 8b1b70a..d4307dc 100644 --- a/www/changelog.xml +++ b/www/changelog.xml @@ -17,6 +17,7 @@
  • OpenConnect HEAD
      +
    • Fix build on systems like FreeBSD 8 without O_CLOEXEC.
    • Add --dtls-local-port option.
    • Print correct error when /dev/net/tun cannot be opened.
    • Fix openconnect.pc pkg-config file not to require zlib.pc on systems which lack it (like RHEL5).
    • -- 2.7.4