openbsd-ports/japanese/Wnn/patches/patch-Xwnmo_xjutil_jhlp_c
2022-03-11 19:24:42 +00:00

34 lines
644 B
Plaintext

--- Xwnmo/xjutil/jhlp.c.orig
+++ Xwnmo/xjutil/jhlp.c
@@ -81,6 +81,7 @@ static char rcs_id[] = "$Id: jhlp.c,v 1.9 1992/09/25 0
*/
#include <stdio.h>
#include <signal.h>
+#include <stdlib.h>
#include <pwd.h>
#include "commonhd.h"
#include "sdefine.h"
@@ -92,13 +93,6 @@ static char rcs_id[] = "$Id: jhlp.c,v 1.9 1992/09/25 0
struct passwd *getpwuid();
-#ifdef BSD42
-#include <sgtty.h>
-#endif /* BSD42 */
-#ifdef SYSVR2
-#include <termio.h>
-#endif /* SYSVR2 */
-
extern char *optarg;
extern int optind;
@@ -173,7 +167,7 @@ save_signals()
signal(SIGCHLD, SIG_IGN);
}
-void
+int
main(argc, argv)
int argc;
char **argv;