* src/sdiff.c (sigprocmask) [! HAVE_SIGPROCMASK]: Cast 2nd arg to

sigset_t *, since it might be a literal 0.  Problem reported by
Paul Edwards for MVS 3.8.
This commit is contained in:
Paul Eggert 2006-11-05 00:57:34 +00:00
parent 10892a2dcc
commit 6bd6999fed
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-11-04 Paul Eggert <eggert@cs.ucla.edu>
* src/sdiff.c (sigprocmask) [! HAVE_SIGPROCMASK]: Cast 2nd arg to
sigset_t *, since it might be a literal 0. Problem reported by
Paul Edwards for MVS 3.8.
2006-09-05 Paul Eggert <eggert@cs.ucla.edu>
* NEWS: diff -u no longer outputs trailing white space unless the

View File

@ -112,7 +112,9 @@ static int const sigs[] = {
# define SIG_SETMASK (! SIG_BLOCK)
# endif
# define sigprocmask(how, n, o) \
((how) == SIG_BLOCK ? *(o) = sigblock (*(n)) : sigsetmask (*(n)))
((how) == SIG_BLOCK \
? *(sigset_t *) (o) = sigblock (*(n)) \
: sigsetmask (*(n)))
#endif
static bool diraccess (char const *);