aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sablotron/files/patch-src__engine__encoding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/sablotron/files/patch-src__engine__encoding.cpp')
-rw-r--r--textproc/sablotron/files/patch-src__engine__encoding.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/textproc/sablotron/files/patch-src__engine__encoding.cpp b/textproc/sablotron/files/patch-src__engine__encoding.cpp
index 3079d18b8ac7..afca8521973d 100644
--- a/textproc/sablotron/files/patch-src__engine__encoding.cpp
+++ b/textproc/sablotron/files/patch-src__engine__encoding.cpp
@@ -1,11 +1,23 @@
---- ./src/engine/encoding.cpp.orig 2013-07-30 16:44:46.000000000 +0200
-+++ ./src/engine/encoding.cpp 2013-07-30 16:46:02.000000000 +0200
-@@ -278,7 +278,7 @@
+--- src/engine/encoding.cpp.orig 2003-11-21 08:45:11.000000000 +0000
++++ src/engine/encoding.cpp
+@@ -30,6 +30,7 @@
+ * GPL.
+ */
+ #include <errno.h>
++#include <sys/param.h>
+
+ #include "encoding.h"
+ #include "proc.h"
+@@ -278,7 +279,12 @@ eFlag Recoder::conv(Sit S, CDesc cd, con
errno = 0;
iconv((iconv_t)(cd -> physCD),
# ifdef SABLOT_ICONV_CAST_OK
-- (char**)(&inbuf),
++#if defined(__FreeBSD__) || \
++ (defined(__DragonFly__) && __DragonFly_version > 300502)
+ (const char**)(&inbuf),
++#else
+ (char**)(&inbuf),
++#endif
# else
&inbuf,
# endif