diff options
author | alex <alex@FreeBSD.org> | 2000-07-19 22:54:42 +0800 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2000-07-19 22:54:42 +0800 |
commit | 494ac3e1d1b61b560a52f5a790daedeae7ad350c (patch) | |
tree | 7d12cc97ce3e9d57901ec94986794a56f83d7e8d /shells | |
parent | f24bc124259468ef6a5a6a393cfe03f02fe9b3bb (diff) | |
download | freebsd-ports-gnome-494ac3e1d1b61b560a52f5a790daedeae7ad350c.tar.gz freebsd-ports-gnome-494ac3e1d1b61b560a52f5a790daedeae7ad350c.tar.zst freebsd-ports-gnome-494ac3e1d1b61b560a52f5a790daedeae7ad350c.zip |
- Add support for sigset_t - changes.
- Claim maintainership.
Approved by: cracauer
Diffstat (limited to 'shells')
-rw-r--r-- | shells/scsh/Makefile | 2 | ||||
-rw-r--r-- | shells/scsh/files/patch-af | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/shells/scsh/Makefile b/shells/scsh/Makefile index dc29959dc04d..c05f3c977d79 100644 --- a/shells/scsh/Makefile +++ b/shells/scsh/Makefile @@ -13,7 +13,7 @@ MASTER_SITES= ftp://ftp-swiss.ai.mit.edu/pub/su/scsh/ \ ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= cracauer -MAINTAINER= cracauer@cons.org +MAINTAINER= alex@FreeBSD.org CONFIGURE_ENV+= LDFLAGS="-Wl,-E" diff --git a/shells/scsh/files/patch-af b/shells/scsh/files/patch-af new file mode 100644 index 000000000000..5db2627b7de6 --- /dev/null +++ b/shells/scsh/files/patch-af @@ -0,0 +1,26 @@ +--- scsh/bsd/sigset.h.old Tue Feb 1 16:04:42 2000 ++++ scsh/bsd/sigset.h Fri Feb 4 14:54:18 2000 +@@ -2,9 +2,18 @@ + ** These macros are OS-dependent, and must be defined per-OS. + */ + +-#define make_sigset(maskp, hi, lo) (*maskp=((hi)<<24)|(lo)) ++#define make_sigset(maskp, hi, lo) sigemptyset(maskp),\ ++ sigaddset(maskp, hi), \ ++ sigaddset(maskp, lo); + +-/* Not a procedure: */ +-#define split_sigset(mask, hip, lop) \ +- ((*(hip)=(mask>>24)&0xff), \ +- (*(lop)=(mask&0xffffff))) ++static void ++split_sigset(sigset_t mask, int * hip, int * lop) { ++ int seen = 0; ++ int n; ++ for (n = 1; n <= _SIG_MAXSIG; n++) { ++ if (sigismember(&mask, n)) ++ (seen ? *hip : *lop) = n, seen++; ++ } ++ if (seen == 1) ++ *hip = 0; ++} |