summaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-02-19 08:46:56 +0000
committerknu <knu@FreeBSD.org>2003-02-19 08:46:56 +0000
commitcc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a (patch)
tree5a2c7c767bab482f9abde5a178ba395eca59dfe7 /shells
parent8d8b9c3817eb4f7652edea01bba5838cf8a14899 (diff)
downloadFreeBSD-ports-cc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a.zip
FreeBSD-ports-cc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a.tar.gz
Add a patch to fix a fatal problem on *BSD/sparc64 that fd falls into
background as soon as it is invoked.
Diffstat (limited to 'shells')
-rw-r--r--shells/fd/files/patch-system.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/shells/fd/files/patch-system.h b/shells/fd/files/patch-system.h
new file mode 100644
index 0000000..be5dfe0
--- /dev/null
+++ b/shells/fd/files/patch-system.h
@@ -0,0 +1,27 @@
+Taken from: [FDclone-users:00109]
+diff -u FD-2.02a/system.h ./system.h
+--- FD-2.02a/system.h Wed Nov 20 09:44:57 2002
++++ ./system.h Mon Feb 17 02:27:11 2003
+@@ -47,15 +47,20 @@
+ #define Xsigblock(o,m) ((o) = sigblock(m))
+ #endif /* !USESIGPMASK */
+
++#ifdef POSIX
++#define gettcpgrp(f, g) (g = tcgetpgrp(f))
++#define settcpgrp(f, g) tcsetpgrp(f, g)
++#else
+ #ifdef TIOCGPGRP
+ #define gettcpgrp(f, g) ((ioctl(f, TIOCGPGRP, &g) < 0) ? (g = -1) : g)
+ #else
+-#define gettcpgrp(f, g) (g = tcgetpgrp(f))
++#define gettcpgrp(f, g) (-1)
+ #endif
+ #ifdef TIOCSPGRP
+ #define settcpgrp(f, g) ioctl(f, TIOCSPGRP, &(g))
+ #else
+-#define settcpgrp(f, g) tcsetpgrp(f, g)
++#define settcpgrp(f, g) (-1)
++#endif
+ #endif
+
+ #if !MSDOS
OpenPOWER on IntegriCloud