Move all pipe-specific code under #if HAVE_PIPE
| Signal handler. |
`-----------------*/
+#ifdef HAVE_PIPE
static void
sig_catch(int sig, void (*handler) (int))
{
sig_catch (number, signal_handler);
}
-/*------------------------------------------------------------------------.
-| Prepare to handle signals, intercept willingful requests for stopping. |
-`------------------------------------------------------------------------*/
-
static void
setup_signals (void)
{
-#ifdef SIGPIPE
- sig_catch (SIGPIPE, signal_handler);
-#endif
+ sig_catch (SIGPIPE, signal_handler);
}
+#endif
\f
/* Main control. */
exit (EXIT_SUCCESS);
}
+#if HAVE_PIPE
setup_signals ();
+#endif
{
RECODE_TASK task;
struct recode_subtask subtask_block;
RECODE_SUBTASK subtask = &subtask_block;
+#if HAVE_PIPE
int pipe_pair[2]; /* pair of file descriptors for a pipe */
pid_t wait_status; /* status returned by wait() */
+#endif
struct recode_read_write_text input;
struct recode_read_write_text output;