summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--japanese/FreeWnn-lib/files/patch-ab19
-rw-r--r--japanese/FreeWnn-server/files/patch-ab19
2 files changed, 38 insertions, 0 deletions
diff --git a/japanese/FreeWnn-lib/files/patch-ab b/japanese/FreeWnn-lib/files/patch-ab
new file mode 100644
index 000000000000..5bcae60ee528
--- /dev/null
+++ b/japanese/FreeWnn-lib/files/patch-ab
@@ -0,0 +1,19 @@
+--- ./Wnn/jserver/de.c.org Thu Aug 18 18:31:23 1994
++++ ./Wnn/jserver/de.c Fri Feb 28 01:13:16 1997
+@@ -264,7 +264,16 @@
+ fclose(stdin);
+ fclose(stdout);
+ if(!noisy){
++#ifndef __FreeBSD__
+ fclose(stderr);
++#else /* __FreeBSD__ */
++ int fd = open("/dev/null", O_WRONLY);
++ if (fd < 0) {
++ xerror("Cannot open /dev/null\n");
++ }
++ dup2(fd, 2);
++ close(fd);
++#endif /* __FreeBSD__ */
+ }
+
+ #if defined(hpux) || defined(SOLARIS)
diff --git a/japanese/FreeWnn-server/files/patch-ab b/japanese/FreeWnn-server/files/patch-ab
new file mode 100644
index 000000000000..5bcae60ee528
--- /dev/null
+++ b/japanese/FreeWnn-server/files/patch-ab
@@ -0,0 +1,19 @@
+--- ./Wnn/jserver/de.c.org Thu Aug 18 18:31:23 1994
++++ ./Wnn/jserver/de.c Fri Feb 28 01:13:16 1997
+@@ -264,7 +264,16 @@
+ fclose(stdin);
+ fclose(stdout);
+ if(!noisy){
++#ifndef __FreeBSD__
+ fclose(stderr);
++#else /* __FreeBSD__ */
++ int fd = open("/dev/null", O_WRONLY);
++ if (fd < 0) {
++ xerror("Cannot open /dev/null\n");
++ }
++ dup2(fd, 2);
++ close(fd);
++#endif /* __FreeBSD__ */
+ }
+
+ #if defined(hpux) || defined(SOLARIS)