You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2001/09/07 06:02:24 UTC

cvs commit: apr/threadproc/unix signals.c

jerenkrantz    01/09/06 21:02:24

  Modified:    threadproc/unix signals.c
  Log:
  On platforms that have sigsuspend (such as Darwin) but not apr_sigwait,
  we don't need sig_func declared.
  
  Revision  Changes    Path
  1.35      +2 -0      apr/threadproc/unix/signals.c
  
  Index: signals.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/signals.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- signals.c	2001/08/10 21:04:48	1.34
  +++ signals.c	2001/09/07 04:02:24	1.35
  @@ -271,7 +271,9 @@
   APR_DECLARE(apr_status_t) apr_signal_thread(int(*signal_handler)(int signum))
   {
       sigset_t sig_mask;
  +#if APR_HAVE_SIGWAIT
       int (*sig_func)(int signum) = (int (*)(int))signal_handler;
  +#endif
   
       /* This thread will be the one responsible for handling signals */
       sigfillset(&sig_mask);