$NetBSD: patch-aq,v 1.1 2008/10/25 16:29:55 uebayasi Exp $

--- inputmethod/uim/im_uim.c.orig	2006-04-05 19:47:22.000000000 +0900
+++ inputmethod/uim/im_uim.c	2008-10-26 01:09:33.000000000 +0900
@@ -49,6 +49,11 @@
 #define  IM_UIM_DEBUG  1
 #endif
 
+/* PKGSRC: BUFSIZ undeclared when PKG_OPTIONS.mlterm=uim */
+#ifndef BUFSIZ
+#define	BUFSIZ	1024
+#endif
+
 
 /*
  * When uim encoding is the same as terminal, parser_uim and conv are NULL,
