$OpenBSD: patch-junklib_c,v 1.3 2014/09/23 13:44:03 dcoppa Exp $
--- junklib.c.orig	Thu Jul 31 21:03:51 2014
+++ junklib.c	Tue Sep 23 14:54:07 2014
@@ -32,7 +32,6 @@
 #include <stdlib.h>
 #include <string.h>
 #if HAVE_ICONV
-  #define LIBICONV_PLUG
   #include <iconv.h>
 #elif HAVE_ICU
   #warning icu
@@ -475,7 +474,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;
