diff options
author | Alexander Langer <alex@FreeBSD.org> | 2000-07-19 14:54:42 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2000-07-19 14:54:42 +0000 |
commit | 54f9fd8835f0e13c9919fcc83c1ba3789ced1d19 (patch) | |
tree | 82c81cf1bfe65967c55f461ba5628aa4125de1b5 /lang/scsh | |
parent | Respect CXX/CXXFLAGS (diff) |
- Add support for sigset_t - changes.
- Claim maintainership.
Approved by: cracauer
Notes
Notes:
svn path=/head/; revision=30875
Diffstat (limited to 'lang/scsh')
-rw-r--r-- | lang/scsh/Makefile | 2 | ||||
-rw-r--r-- | lang/scsh/files/patch-af | 26 |
2 files changed, 27 insertions, 1 deletions
diff --git a/lang/scsh/Makefile b/lang/scsh/Makefile index dc29959dc04d..c05f3c977d79 100644 --- a/lang/scsh/Makefile +++ b/lang/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/lang/scsh/files/patch-af b/lang/scsh/files/patch-af new file mode 100644 index 000000000000..5db2627b7de6 --- /dev/null +++ b/lang/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; ++} |