openbsd-ports/japanese/Wnn/patches/patch-Wnn_etc_xutoj_c
espie 2625bb5332 fixes for clang: don't compile a clone of getopt.
while there, fix system includes, implicit ints, and void main.
2017-04-29 14:31:40 +00:00

22 lines
609 B
Plaintext

$OpenBSD: patch-Wnn_etc_xutoj_c,v 1.1 2017/04/29 14:31:40 espie Exp $
--- Wnn/etc/xutoj.c.orig
+++ Wnn/etc/xutoj.c
@@ -53,6 +53,8 @@
#include "commonhd.h"
#include "config.h"
#include "wnn_os.h"
+#include <string.h>
+#include <stdlib.h>
#define ECNS_IS_UCNS 1 /* The trust CNS is CNS11643 based on ISO2022,
but the CNS is binded on EUC */
@@ -1726,7 +1728,7 @@ int siz;
{
register unsigned char *d = big5;
register w_char *s = icns;
- register i = siz;
+ register int i = siz;
short code_out; /* Buffering one two-byte code */
if (d == NULL || s == NULL) return(-1);