$OpenBSD: patch-junklib_c,v 1.4 2016/09/13 08:48:11 dcoppa Exp $
--- junklib.c.orig	Sun Sep  4 08:55:24 2016
+++ junklib.c	Sun Sep  4 08:56:11 2016
@@ -33,7 +33,6 @@
 #include <string.h>
 #undef HAVE_ICI
 #if HAVE_ICONV
-  #define LIBICONV_PLUG
   #include <iconv.h>
 #elif HAVE_ICU
   #warning icu
@@ -586,7 +585,7 @@ junk_iconv (const char *in, int inlen, char *out, int 
     if (cd == (iconv_t)-1) {
         return -1;
     }
-#ifdef __linux__
+#if defined(__linux__) || defined (__OpenBSD__)
     char *pin = (char*)in;
 #else
     const char *pin = in;
