aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libidn/patches/05-define-IDNA_LABEL_MAX_LENGTH.patch
blob: 0aeef874e478115271d1064d8492290a6fdd7cb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- contrib/libs/libidn/lib/idna.h
+++ contrib/libs/libidn/lib/idna.h
@@ -99,6 +99,10 @@ extern "C"
 #  define IDNA_ACE_PREFIX "xn--"
 # endif
 
+# ifndef IDNA_LABEL_MAX_LENGTH
+#  define IDNA_LABEL_MAX_LENGTH 255
+# endif
+
   extern IDNAPI const char *idna_strerror (Idna_rc rc);
 
   /* Core functions */