mainloop.c - malloc without a prototype
authorStuart Henderson <stu@spacehopper.org>
Sun, 8 Jul 2012 15:23:05 +0000 (17:23 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 8 Jul 2012 21:49:01 +0000 (22:49 +0100)
I noticed a little problem building OpenConnect against gnutls 3;
mainloop.c uses malloc() in queue_new_packet(), somewhere in the chain
of openssl headers stdlib.h gets pulled in so it works ok there, but
this isn't the case with a gnutls build.

Signed-off-by: Stuart Henderson <sthen@openbsd.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
mainloop.c
www/changelog.xml

index fa17515..5f65c67 100644 (file)
@@ -26,6 +26,7 @@
 #include <poll.h>
 #include <limits.h>
 #include <sys/select.h>
+#include <stdlib.h>
 #include <signal.h>
 #include <unistd.h>
 #include <string.h>
index 533fe06..54f7586 100644 (file)
@@ -17,7 +17,7 @@
 <ul>
    <li><b>OpenConnect HEAD</b>
      <ul>
-       <li><i>No changelog entries yet</i></li>
+       <li>Fix GnuTLS v3 build on OpenBSD.</li>
      </ul><br/>
   </li>
   <li><b><a href="ftp://ftp.infradead.org/pub/openconnect/openconnect-4.04.tar.gz">OpenConnect v4.04</a></b>