[gnutls-devel] [PATCH 1/4] Fix include order, include gnutls_int.h before gnutls.h, otherwise undefined external references to gnutls_free and gnutls_strdup are the result when statically linking against GnuTLS built by MinGW.

Tim Kosse tim.kosse at filezilla-project.org
Sat Apr 18 11:38:54 CEST 2015


---
 lib/gnutls_supplemental.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/gnutls_supplemental.c b/lib/gnutls_supplemental.c
index 9964cfd..91dfeb1 100644
--- a/lib/gnutls_supplemental.c
+++ b/lib/gnutls_supplemental.c
@@ -43,8 +43,8 @@
  * want to send any data, it is fine to return without doing anything.
  */
 
-#include <gnutls/gnutls.h>
 #include "gnutls_int.h"
+#include <gnutls/gnutls.h>
 #include "gnutls_supplemental.h"
 #include "gnutls_errors.h"
 #include "gnutls_num.h"
-- 
2.1.4




More information about the Gnutls-devel mailing list