openbsd-ports/japanese/Wnn/patches/patch-Xwnmo_xjutil_init_w_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

20 lines
431 B
Plaintext

$OpenBSD: patch-Xwnmo_xjutil_init_w_c,v 1.2 2017/04/29 14:31:40 espie Exp $
--- Xwnmo/xjutil/init_w.c.orig
+++ Xwnmo/xjutil/init_w.c
@@ -35,6 +35,7 @@
/* Version 4.0
*/
#include <stdio.h>
+#include <stdlib.h>
#include "commonhd.h"
#include "sdefine.h"
#include "xjutil.h"
@@ -76,7 +77,6 @@ env_state()
char *p;
char ret = '\0';
#ifndef SYSVR2
- extern char *index();
#else
extern char *strchr();
#endif