diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2003-02-19 08:46:56 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2003-02-19 08:46:56 +0000 |
commit | 3e04b06448340ba38ea6896bfafa13f7ec9845be (patch) | |
tree | 8aafd02b1d22559883a93784e7d74de6b116c4f5 /shells/fd | |
parent | Add a patch to fix a glob expansion problem where special character (diff) |
Add a patch to fix a fatal problem on *BSD/sparc64 that fd falls into
background as soon as it is invoked.
Notes
Notes:
svn path=/head/; revision=75866
Diffstat (limited to 'shells/fd')
-rw-r--r-- | shells/fd/files/patch-system.h | 27 |
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 |