From: David Woodhouse Date: Mon, 25 Jun 2012 20:13:35 +0000 (+0200) Subject: Fix build on systems without O_CLOEXEC X-Git-Tag: v4.01~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3496d76e934a8df42ec5bca214b9ae08c814cfc;p=platform%2Fupstream%2Fopenconnect.git Fix build on systems without O_CLOEXEC Reported by Ryan Steinmetz Signed-off-by: David Woodhouse --- 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).