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

24 lines
612 B
Plaintext

$OpenBSD: patch-Wnn_jserver_do_filecom_c,v 1.2 2017/04/29 14:31:40 espie Exp $
--- Wnn/jserver/do_filecom.c.orig
+++ Wnn/jserver/do_filecom.c
@@ -55,6 +55,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
#include "demcom.h"
#include "commonhd.h"
@@ -82,7 +84,9 @@ file_init()
/* mkdir */
-#define MODE (0000000 | 0000777)
+#define MODE 0755
+
+/* #define MODE (0000000 | 0000777) */
#if defined(BSD42) || defined(uniosu) || defined(UX386) || defined(DGUX)
/* #define MODE (0040000 | 0000731) */
/* #define MODE (0000000 | 0000733) */