pkgsrc/games/netmaj/patches/patch-af
kei c6fc0d0972 first import of netmaj-2.0.7 package.
from pkg/DESCR:

netmaj is a mahjongg game.  You can play via network.  If you don't
find four players, computer plays for you.
2001-04-22 09:58:59 +00:00

21 lines
407 B
Text

$NetBSD: patch-af,v 1.1.1.1 2001/04/22 09:58:59 kei Exp $
--- server.c.orig Fri Sep 6 06:29:53 1996
+++ server.c
@@ -23,6 +23,7 @@
#include <signal.h>
#include <sys/wait.h>
+#include <unistd.h>
#ifndef SIGCHLD
#define SIGCHLD SIGCLD
#endif
@@ -131,7 +132,7 @@
pack_rule(&rule);
if (debug == 0) {
- if (!fork(0)) {
+ if (!fork()) {
fclose(stdin);
fclose(stdout);
fclose(stderr);