aboutsummaryrefslogtreecommitdiffstats
path: root/shells/fd
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-02-19 16:46:56 +0800
committerknu <knu@FreeBSD.org>2003-02-19 16:46:56 +0800
commitcc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a (patch)
tree5a2c7c767bab482f9abde5a178ba395eca59dfe7 /shells/fd
parent8d8b9c3817eb4f7652edea01bba5838cf8a14899 (diff)
downloadfreebsd-ports-gnome-cc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a.tar.gz
freebsd-ports-gnome-cc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a.tar.zst
freebsd-ports-gnome-cc8cae3c0a6af2de0dfe6dfa72fa18cde0d3470a.zip
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/fd')
-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 000000000000..be5dfe05ec1d
--- /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