pkgsrc/x11/mlterm/patches/patch-aq
uebayasi 5035a37bb5 In case BUFSIZ is abused, define it to be 1024 (as seen in NetBSD's
stdio.h), when it's not defined.

Should address the build error reported by NONAKA Kimihiro
<nonakap@gmail.com>, pkg/39799.
2008-10-25 16:29:55 +00:00

16 lines
441 B
Text

$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,