summaryrefslogtreecommitdiff
path: root/sysutils/mtools/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-05-31 22:22:08 +0000
committertron <tron@pkgsrc.org>1999-05-31 22:22:08 +0000
commitde8324698d4255fc455a795629c251c48572694e (patch)
tree978e62cdf71149da37531deda38d9b081c11b7e1 /sysutils/mtools/patches
parent935d09b5cb42f91449490489ccffcd1297ff48ae (diff)
downloadpkgsrc-de8324698d4255fc455a795629c251c48572694e.tar.gz
- Enhance "configure" target so that "floppyd" will be built on systems
with X11 installed. - Fix compliation problems in "floppyd.cpp" with the patch supplied by Antti Kantee in PR pkg/7670. - Remove "floppyd" manual page if the binary isn't built and installed.
Diffstat (limited to 'sysutils/mtools/patches')
-rw-r--r--sysutils/mtools/patches/patch-ac47
1 files changed, 47 insertions, 0 deletions
diff --git a/sysutils/mtools/patches/patch-ac b/sysutils/mtools/patches/patch-ac
new file mode 100644
index 00000000000..68fb4c51995
--- /dev/null
+++ b/sysutils/mtools/patches/patch-ac
@@ -0,0 +1,47 @@
+$NetBSD: patch-ac,v 1.1 1999/05/31 22:22:09 tron Exp $
+
+--- floppyd.cpp.orig Sun May 30 18:05:46 1999
++++ floppyd.cpp Sun May 30 18:25:37 1999
+@@ -527,12 +527,12 @@
+ {
+ int new_sock;
+ struct sockaddr_in addr;
+- int len;
++ socklen_t len;
+
+ /*
+ * Ignore dead servers so no zombies should be left hanging.
+ */
+- signal(SIGCLD, SIG_IGN);
++ signal(SIGCHLD, SIG_IGN);
+
+ for (;;)
+ {
+@@ -615,6 +615,7 @@
+ short bind_port = FLOPPYD_DEFAULT_PORT;
+ uid_t run_uid = 65535;
+ gid_t run_gid = 65535;
++ pid_t run_pid;
+ int sock;
+ int port_is_supplied = 0;
+ int no_local = 0;
+@@ -665,7 +666,7 @@
+ }
+ if(!run_as_server) {
+ struct sockaddr_in addr;
+- int len = sizeof(addr);
++ socklen_t len = sizeof(addr);
+
+ /* try to find out port that we are connected to */
+ if(getsockname(0, (sockaddr*) &addr, &len) >= 0 &&
+@@ -836,8 +837,8 @@
+ /*
+ * Start a new session and group.
+ */
+- setsid();
+- setpgrp();
++ run_pid = setsid();
++ setpgrp(0, run_pid);
+
+ close(2);
+ open("/dev/null", O_WRONLY);