]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Make it find strlen.
authorSimon Josefsson <simon@josefsson.org>
Sat, 7 Jun 2008 20:48:03 +0000 (22:48 +0200)
committerSimon Josefsson <simon@josefsson.org>
Sat, 7 Jun 2008 20:48:03 +0000 (22:48 +0200)
Problem reported by Rainer Gerhards <rgerhards@gmail.com> and
suggested fix by "John Brooks" <aspecialj@gmail.com>.

NEWS
doc/examples/ex-cxx.cpp

diff --git a/NEWS b/NEWS
index 60dffa4deb5b4849525be60e014a7e07fa3c2815..202cfa2ff9c33f9501776772fe3870f3397e94b2 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ See the end for copying conditions.
 
 * Version 2.3.14 (unreleased)
 
+** Make C++ example compile.
+Earlier it may have failed with an unresolved reference to strlen.
+
 ** API and ABI modifications:
 No changes since last version.
 
index b43aba658a3c70c5bab05f6b77dfa86512efe5cc..3233aa2f16c901ac97f00146165d7da3b7d8de24 100644 (file)
@@ -7,6 +7,8 @@
 #include <gnutls/gnutls.h>
 #include <gnutls/gnutlsxx.h>
 
+#include <string.h> /* for strlen */
+
 /* A very basic TLS client, with anonymous authentication.
  * written by Eduardo Villanueva Che.
  */